toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final adaptiveQuantization = this.adaptiveQuantization;
  final bitrate = this.bitrate;
  final codecLevel = this.codecLevel;
  final codecProfile = this.codecProfile;
  final dynamicSubGop = this.dynamicSubGop;
  final framerateControl = this.framerateControl;
  final framerateConversionAlgorithm = this.framerateConversionAlgorithm;
  final framerateDenominator = this.framerateDenominator;
  final framerateNumerator = this.framerateNumerator;
  final gopClosedCadence = this.gopClosedCadence;
  final gopSize = this.gopSize;
  final gopSizeUnits = this.gopSizeUnits;
  final hrdBufferInitialFillPercentage = this.hrdBufferInitialFillPercentage;
  final hrdBufferSize = this.hrdBufferSize;
  final interlaceMode = this.interlaceMode;
  final intraDcPrecision = this.intraDcPrecision;
  final maxBitrate = this.maxBitrate;
  final minIInterval = this.minIInterval;
  final numberBFramesBetweenReferenceFrames =
      this.numberBFramesBetweenReferenceFrames;
  final parControl = this.parControl;
  final parDenominator = this.parDenominator;
  final parNumerator = this.parNumerator;
  final qualityTuningLevel = this.qualityTuningLevel;
  final rateControlMode = this.rateControlMode;
  final sceneChangeDetect = this.sceneChangeDetect;
  final slowPal = this.slowPal;
  final softness = this.softness;
  final spatialAdaptiveQuantization = this.spatialAdaptiveQuantization;
  final syntax = this.syntax;
  final telecine = this.telecine;
  final temporalAdaptiveQuantization = this.temporalAdaptiveQuantization;
  return {
    if (adaptiveQuantization != null)
      'adaptiveQuantization': adaptiveQuantization.toValue(),
    if (bitrate != null) 'bitrate': bitrate,
    if (codecLevel != null) 'codecLevel': codecLevel.toValue(),
    if (codecProfile != null) 'codecProfile': codecProfile.toValue(),
    if (dynamicSubGop != null) 'dynamicSubGop': dynamicSubGop.toValue(),
    if (framerateControl != null)
      'framerateControl': framerateControl.toValue(),
    if (framerateConversionAlgorithm != null)
      'framerateConversionAlgorithm': framerateConversionAlgorithm.toValue(),
    if (framerateDenominator != null)
      'framerateDenominator': framerateDenominator,
    if (framerateNumerator != null) 'framerateNumerator': framerateNumerator,
    if (gopClosedCadence != null) 'gopClosedCadence': gopClosedCadence,
    if (gopSize != null) 'gopSize': gopSize,
    if (gopSizeUnits != null) 'gopSizeUnits': gopSizeUnits.toValue(),
    if (hrdBufferInitialFillPercentage != null)
      'hrdBufferInitialFillPercentage': hrdBufferInitialFillPercentage,
    if (hrdBufferSize != null) 'hrdBufferSize': hrdBufferSize,
    if (interlaceMode != null) 'interlaceMode': interlaceMode.toValue(),
    if (intraDcPrecision != null)
      'intraDcPrecision': intraDcPrecision.toValue(),
    if (maxBitrate != null) 'maxBitrate': maxBitrate,
    if (minIInterval != null) 'minIInterval': minIInterval,
    if (numberBFramesBetweenReferenceFrames != null)
      'numberBFramesBetweenReferenceFrames':
          numberBFramesBetweenReferenceFrames,
    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(),
    if (sceneChangeDetect != null)
      'sceneChangeDetect': sceneChangeDetect.toValue(),
    if (slowPal != null) 'slowPal': slowPal.toValue(),
    if (softness != null) 'softness': softness,
    if (spatialAdaptiveQuantization != null)
      'spatialAdaptiveQuantization': spatialAdaptiveQuantization.toValue(),
    if (syntax != null) 'syntax': syntax.toValue(),
    if (telecine != null) 'telecine': telecine.toValue(),
    if (temporalAdaptiveQuantization != null)
      'temporalAdaptiveQuantization': temporalAdaptiveQuantization.toValue(),
  };
}