Media.fromJson constructor
Media.fromJson(
- Map json_
Implementation
Media.fromJson(core.Map json_)
: this(
algorithm: json_.containsKey('algorithm')
? json_['algorithm'] as core.String
: null,
bigstoreObjectRef: json_.containsKey('bigstoreObjectRef')
? json_['bigstoreObjectRef'] as core.String
: null,
blobRef: json_.containsKey('blobRef')
? json_['blobRef'] as core.String
: null,
blobstore2Info: json_.containsKey('blobstore2Info')
? Blobstore2Info.fromJson(json_['blobstore2Info']
as core.Map<core.String, core.dynamic>)
: null,
compositeMedia: json_.containsKey('compositeMedia')
? (json_['compositeMedia'] as core.List)
.map((value) => CompositeMedia.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
contentType: json_.containsKey('contentType')
? json_['contentType'] as core.String
: null,
contentTypeInfo: json_.containsKey('contentTypeInfo')
? ContentTypeInfo.fromJson(json_['contentTypeInfo']
as core.Map<core.String, core.dynamic>)
: null,
cosmoBinaryReference: json_.containsKey('cosmoBinaryReference')
? json_['cosmoBinaryReference'] as core.String
: null,
crc32cHash: json_.containsKey('crc32cHash')
? json_['crc32cHash'] as core.int
: null,
diffChecksumsResponse: json_.containsKey('diffChecksumsResponse')
? DiffChecksumsResponse.fromJson(json_['diffChecksumsResponse']
as core.Map<core.String, core.dynamic>)
: null,
diffDownloadResponse: json_.containsKey('diffDownloadResponse')
? DiffDownloadResponse.fromJson(json_['diffDownloadResponse']
as core.Map<core.String, core.dynamic>)
: null,
diffUploadRequest: json_.containsKey('diffUploadRequest')
? DiffUploadRequest.fromJson(json_['diffUploadRequest']
as core.Map<core.String, core.dynamic>)
: null,
diffUploadResponse: json_.containsKey('diffUploadResponse')
? DiffUploadResponse.fromJson(json_['diffUploadResponse']
as core.Map<core.String, core.dynamic>)
: null,
diffVersionResponse: json_.containsKey('diffVersionResponse')
? DiffVersionResponse.fromJson(json_['diffVersionResponse']
as core.Map<core.String, core.dynamic>)
: null,
downloadParameters: json_.containsKey('downloadParameters')
? DownloadParameters.fromJson(json_['downloadParameters']
as core.Map<core.String, core.dynamic>)
: null,
filename: json_.containsKey('filename')
? json_['filename'] as core.String
: null,
hash: json_.containsKey('hash') ? json_['hash'] as core.String : null,
hashVerified: json_.containsKey('hashVerified')
? json_['hashVerified'] as core.bool
: null,
inline: json_.containsKey('inline')
? json_['inline'] as core.String
: null,
isPotentialRetry: json_.containsKey('isPotentialRetry')
? json_['isPotentialRetry'] as core.bool
: null,
length: json_.containsKey('length')
? json_['length'] as core.String
: null,
md5Hash: json_.containsKey('md5Hash')
? json_['md5Hash'] as core.String
: null,
mediaId: json_.containsKey('mediaId')
? json_['mediaId'] as core.String
: null,
objectId: json_.containsKey('objectId')
? ObjectId.fromJson(
json_['objectId'] as core.Map<core.String, core.dynamic>)
: null,
path: json_.containsKey('path') ? json_['path'] as core.String : null,
referenceType: json_.containsKey('referenceType')
? json_['referenceType'] as core.String
: null,
sha1Hash: json_.containsKey('sha1Hash')
? json_['sha1Hash'] as core.String
: null,
sha256Hash: json_.containsKey('sha256Hash')
? json_['sha256Hash'] as core.String
: null,
timestamp: json_.containsKey('timestamp')
? json_['timestamp'] as core.String
: null,
token:
json_.containsKey('token') ? json_['token'] as core.String : null,
);