MediaMetadata.fromJson constructor

MediaMetadata.fromJson(
  1. Map json_
)

Implementation

MediaMetadata.fromJson(core.Map json_)
    : this(
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        height: json_.containsKey('height')
            ? json_['height'] as core.String
            : null,
        photo: json_.containsKey('photo')
            ? Photo.fromJson(
                json_['photo'] as core.Map<core.String, core.dynamic>)
            : null,
        video: json_.containsKey('video')
            ? Video.fromJson(
                json_['video'] as core.Map<core.String, core.dynamic>)
            : null,
        width:
            json_.containsKey('width') ? json_['width'] as core.String : null,
      );