toJson method
Implementation
Map<String, dynamic> toJson() {
final bitrate = this.bitrate;
final framerateControl = this.framerateControl;
final framerateConversionAlgorithm = this.framerateConversionAlgorithm;
final framerateDenominator = this.framerateDenominator;
final framerateNumerator = this.framerateNumerator;
final gopSize = this.gopSize;
final hrdBufferSize = this.hrdBufferSize;
final maxBitrate = this.maxBitrate;
final parControl = this.parControl;
final parDenominator = this.parDenominator;
final parNumerator = this.parNumerator;
final qualityTuningLevel = this.qualityTuningLevel;
final rateControlMode = this.rateControlMode;
return {
if (bitrate != null) 'bitrate': bitrate,
if (framerateControl != null)
'framerateControl': framerateControl.toValue(),
if (framerateConversionAlgorithm != null)
'framerateConversionAlgorithm': framerateConversionAlgorithm.toValue(),
if (framerateDenominator != null)
'framerateDenominator': framerateDenominator,
if (framerateNumerator != null) 'framerateNumerator': framerateNumerator,
if (gopSize != null) 'gopSize': gopSize,
if (hrdBufferSize != null) 'hrdBufferSize': hrdBufferSize,
if (maxBitrate != null) 'maxBitrate': maxBitrate,
if (parControl != null) 'parControl': parControl.toValue(),
if (parDenominator != null) 'parDenominator': parDenominator,
if (parNumerator != null) 'parNumerator': parNumerator,
if (qualityTuningLevel != null)
'qualityTuningLevel': qualityTuningLevel.toValue(),
if (rateControlMode != null) 'rateControlMode': rateControlMode.toValue(),
};
}