Transcode.fromJson constructor

Transcode.fromJson(
  1. Map json_
)

Implementation

Transcode.fromJson(core.Map json_)
    : this(
        audioBitRateKbps: json_.containsKey('audioBitRateKbps')
            ? json_['audioBitRateKbps'] as core.String
            : null,
        audioSampleRateHz: json_.containsKey('audioSampleRateHz')
            ? json_['audioSampleRateHz'] as core.String
            : null,
        bitRateKbps: json_.containsKey('bitRateKbps')
            ? json_['bitRateKbps'] as core.String
            : null,
        dimensions: json_.containsKey('dimensions')
            ? Dimensions.fromJson(
                json_['dimensions'] as core.Map<core.String, core.dynamic>)
            : null,
        fileSizeBytes: json_.containsKey('fileSizeBytes')
            ? json_['fileSizeBytes'] as core.String
            : null,
        frameRate: json_.containsKey('frameRate')
            ? (json_['frameRate'] as core.num).toDouble()
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        transcoded: json_.containsKey('transcoded')
            ? json_['transcoded'] as core.bool
            : null,
      );