Vp9Settings.fromJson constructor
Vp9Settings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Vp9Settings.fromJson(Map<String, dynamic> json) {
return Vp9Settings(
bitrate: json['bitrate'] as int?,
framerateControl:
(json['framerateControl'] as String?)?.toVp9FramerateControl(),
framerateConversionAlgorithm:
(json['framerateConversionAlgorithm'] as String?)
?.toVp9FramerateConversionAlgorithm(),
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?)?.toVp9ParControl(),
parDenominator: json['parDenominator'] as int?,
parNumerator: json['parNumerator'] as int?,
qualityTuningLevel:
(json['qualityTuningLevel'] as String?)?.toVp9QualityTuningLevel(),
rateControlMode:
(json['rateControlMode'] as String?)?.toVp9RateControlMode(),
);
}