CloudStorageEntry.fromJson constructor

CloudStorageEntry.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory CloudStorageEntry.fromJson(Map<String, dynamic> jsonSerialization) {
  return CloudStorageEntry(
    id: jsonSerialization['id'] as int?,
    storageId: jsonSerialization['storageId'] as String,
    path: jsonSerialization['path'] as String,
    addedTime:
        _i1.DateTimeJsonExtension.fromJson(jsonSerialization['addedTime']),
    expiration: jsonSerialization['expiration'] == null
        ? null
        : _i1.DateTimeJsonExtension.fromJson(jsonSerialization['expiration']),
    byteData:
        _i1.ByteDataJsonExtension.fromJson(jsonSerialization['byteData']),
    verified: jsonSerialization['verified'] as bool,
  );
}