Vp9CodecSettings.fromJson constructor

Vp9CodecSettings.fromJson(
  1. Map json_
)

Implementation

Vp9CodecSettings.fromJson(core.Map json_)
    : this(
        bitrateBps: json_.containsKey('bitrateBps')
            ? json_['bitrateBps'] as core.int
            : null,
        crfLevel: json_.containsKey('crfLevel')
            ? json_['crfLevel'] as core.int
            : null,
        frameRate: json_.containsKey('frameRate')
            ? (json_['frameRate'] as core.num).toDouble()
            : null,
        frameRateConversionStrategy:
            json_.containsKey('frameRateConversionStrategy')
                ? json_['frameRateConversionStrategy'] as core.String
                : null,
        gopDuration: json_.containsKey('gopDuration')
            ? json_['gopDuration'] as core.String
            : null,
        gopFrameCount: json_.containsKey('gopFrameCount')
            ? json_['gopFrameCount'] as core.int
            : null,
        heightPixels: json_.containsKey('heightPixels')
            ? json_['heightPixels'] as core.int
            : null,
        hlg: json_.containsKey('hlg')
            ? Vp9ColorFormatHLG.fromJson(
                json_['hlg'] as core.Map<core.String, core.dynamic>)
            : null,
        pixelFormat: json_.containsKey('pixelFormat')
            ? json_['pixelFormat'] as core.String
            : null,
        profile: json_.containsKey('profile')
            ? json_['profile'] as core.String
            : null,
        rateControlMode: json_.containsKey('rateControlMode')
            ? json_['rateControlMode'] as core.String
            : null,
        sdr: json_.containsKey('sdr')
            ? Vp9ColorFormatSDR.fromJson(
                json_['sdr'] as core.Map<core.String, core.dynamic>)
            : null,
        widthPixels: json_.containsKey('widthPixels')
            ? json_['widthPixels'] as core.int
            : null,
      );