VideoCodecSettings.fromJson constructor

VideoCodecSettings.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory VideoCodecSettings.fromJson(Map<String, dynamic> json) {
  return VideoCodecSettings(
    av1Settings: json['av1Settings'] != null
        ? Av1Settings.fromJson(json['av1Settings'] as Map<String, dynamic>)
        : null,
    avcIntraSettings: json['avcIntraSettings'] != null
        ? AvcIntraSettings.fromJson(
            json['avcIntraSettings'] as Map<String, dynamic>)
        : null,
    codec: (json['codec'] as String?)?.toVideoCodec(),
    frameCaptureSettings: json['frameCaptureSettings'] != null
        ? FrameCaptureSettings.fromJson(
            json['frameCaptureSettings'] as Map<String, dynamic>)
        : null,
    h264Settings: json['h264Settings'] != null
        ? H264Settings.fromJson(json['h264Settings'] as Map<String, dynamic>)
        : null,
    h265Settings: json['h265Settings'] != null
        ? H265Settings.fromJson(json['h265Settings'] as Map<String, dynamic>)
        : null,
    mpeg2Settings: json['mpeg2Settings'] != null
        ? Mpeg2Settings.fromJson(
            json['mpeg2Settings'] as Map<String, dynamic>)
        : null,
    proresSettings: json['proresSettings'] != null
        ? ProresSettings.fromJson(
            json['proresSettings'] as Map<String, dynamic>)
        : null,
    vc3Settings: json['vc3Settings'] != null
        ? Vc3Settings.fromJson(json['vc3Settings'] as Map<String, dynamic>)
        : null,
    vp8Settings: json['vp8Settings'] != null
        ? Vp8Settings.fromJson(json['vp8Settings'] as Map<String, dynamic>)
        : null,
    vp9Settings: json['vp9Settings'] != null
        ? Vp9Settings.fromJson(json['vp9Settings'] as Map<String, dynamic>)
        : null,
  );
}