VideoFormat.fromJson constructor

VideoFormat.fromJson(
  1. Map json_
)

Implementation

VideoFormat.fromJson(core.Map json_)
    : this(
        fileType: json_.containsKey('fileType')
            ? json_['fileType'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.int : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        resolution: json_.containsKey('resolution')
            ? Size.fromJson(
                json_['resolution'] as core.Map<core.String, core.dynamic>)
            : null,
        targetBitRate: json_.containsKey('targetBitRate')
            ? json_['targetBitRate'] as core.int
            : null,
      );