CompositeMedia.fromJson constructor

CompositeMedia.fromJson(
  1. Map json_
)

Implementation

CompositeMedia.fromJson(core.Map json_)
    : this(
        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,
        cosmoBinaryReference: json_.containsKey('cosmoBinaryReference')
            ? json_['cosmoBinaryReference'] as core.String
            : null,
        crc32cHash: json_.containsKey('crc32cHash')
            ? json_['crc32cHash'] as core.int
            : null,
        inline: json_.containsKey('inline')
            ? json_['inline'] as core.String
            : null,
        length: json_.containsKey('length')
            ? json_['length'] as core.String
            : null,
        md5Hash: json_.containsKey('md5Hash')
            ? json_['md5Hash'] 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,
      );