Vp8Settings.fromJson constructor

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

Implementation

factory Vp8Settings.fromJson(Map<String, dynamic> json) {
  return Vp8Settings(
    bitrate: json['bitrate'] as int?,
    framerateControl:
        (json['framerateControl'] as String?)?.toVp8FramerateControl(),
    framerateConversionAlgorithm:
        (json['framerateConversionAlgorithm'] as String?)
            ?.toVp8FramerateConversionAlgorithm(),
    framerateDenominator: json['framerateDenominator'] as int?,
    framerateNumerator: json['framerateNumerator'] as int?,
    gopSize: json['gopSize'] as double?,
    hrdBufferSize: json['hrdBufferSize'] as int?,
    maxBitrate: json['maxBitrate'] as int?,
    parControl: (json['parControl'] as String?)?.toVp8ParControl(),
    parDenominator: json['parDenominator'] as int?,
    parNumerator: json['parNumerator'] as int?,
    qualityTuningLevel:
        (json['qualityTuningLevel'] as String?)?.toVp8QualityTuningLevel(),
    rateControlMode:
        (json['rateControlMode'] as String?)?.toVp8RateControlMode(),
  );
}