toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final adaptiveQuantization = this.adaptiveQuantization;
  final framerateControl = this.framerateControl;
  final framerateConversionAlgorithm = this.framerateConversionAlgorithm;
  final framerateDenominator = this.framerateDenominator;
  final framerateNumerator = this.framerateNumerator;
  final gopSize = this.gopSize;
  final maxBitrate = this.maxBitrate;
  final numberBFramesBetweenReferenceFrames =
      this.numberBFramesBetweenReferenceFrames;
  final qvbrSettings = this.qvbrSettings;
  final rateControlMode = this.rateControlMode;
  final slices = this.slices;
  final spatialAdaptiveQuantization = this.spatialAdaptiveQuantization;
  return {
    if (adaptiveQuantization != null)
      'adaptiveQuantization': adaptiveQuantization.toValue(),
    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 (maxBitrate != null) 'maxBitrate': maxBitrate,
    if (numberBFramesBetweenReferenceFrames != null)
      'numberBFramesBetweenReferenceFrames':
          numberBFramesBetweenReferenceFrames,
    if (qvbrSettings != null) 'qvbrSettings': qvbrSettings,
    if (rateControlMode != null) 'rateControlMode': rateControlMode.toValue(),
    if (slices != null) 'slices': slices,
    if (spatialAdaptiveQuantization != null)
      'spatialAdaptiveQuantization': spatialAdaptiveQuantization.toValue(),
  };
}