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 entropyEncoding = this.entropyEncoding;
  final fieldEncoding = this.fieldEncoding;
  final flickerAdaptiveQuantization = this.flickerAdaptiveQuantization;
  final framerateControl = this.framerateControl;
  final framerateConversionAlgorithm = this.framerateConversionAlgorithm;
  final framerateDenominator = this.framerateDenominator;
  final framerateNumerator = this.framerateNumerator;
  final gopBReference = this.gopBReference;
  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 maxBitrate = this.maxBitrate;
  final minIInterval = this.minIInterval;
  final numberBFramesBetweenReferenceFrames =
      this.numberBFramesBetweenReferenceFrames;
  final numberReferenceFrames = this.numberReferenceFrames;
  final parControl = this.parControl;
  final parDenominator = this.parDenominator;
  final parNumerator = this.parNumerator;
  final qualityTuningLevel = this.qualityTuningLevel;
  final qvbrSettings = this.qvbrSettings;
  final rateControlMode = this.rateControlMode;
  final repeatPps = this.repeatPps;
  final sceneChangeDetect = this.sceneChangeDetect;
  final slices = this.slices;
  final slowPal = this.slowPal;
  final softness = this.softness;
  final spatialAdaptiveQuantization = this.spatialAdaptiveQuantization;
  final syntax = this.syntax;
  final telecine = this.telecine;
  final temporalAdaptiveQuantization = this.temporalAdaptiveQuantization;
  final unregisteredSeiTimecode = this.unregisteredSeiTimecode;
  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 (entropyEncoding != null) 'entropyEncoding': entropyEncoding.toValue(),
    if (fieldEncoding != null) 'fieldEncoding': fieldEncoding.toValue(),
    if (flickerAdaptiveQuantization != null)
      'flickerAdaptiveQuantization': flickerAdaptiveQuantization.toValue(),
    if (framerateControl != null)
      'framerateControl': framerateControl.toValue(),
    if (framerateConversionAlgorithm != null)
      'framerateConversionAlgorithm': framerateConversionAlgorithm.toValue(),
    if (framerateDenominator != null)
      'framerateDenominator': framerateDenominator,
    if (framerateNumerator != null) 'framerateNumerator': framerateNumerator,
    if (gopBReference != null) 'gopBReference': gopBReference.toValue(),
    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 (maxBitrate != null) 'maxBitrate': maxBitrate,
    if (minIInterval != null) 'minIInterval': minIInterval,
    if (numberBFramesBetweenReferenceFrames != null)
      'numberBFramesBetweenReferenceFrames':
          numberBFramesBetweenReferenceFrames,
    if (numberReferenceFrames != null)
      'numberReferenceFrames': numberReferenceFrames,
    if (parControl != null) 'parControl': parControl.toValue(),
    if (parDenominator != null) 'parDenominator': parDenominator,
    if (parNumerator != null) 'parNumerator': parNumerator,
    if (qualityTuningLevel != null)
      'qualityTuningLevel': qualityTuningLevel.toValue(),
    if (qvbrSettings != null) 'qvbrSettings': qvbrSettings,
    if (rateControlMode != null) 'rateControlMode': rateControlMode.toValue(),
    if (repeatPps != null) 'repeatPps': repeatPps.toValue(),
    if (sceneChangeDetect != null)
      'sceneChangeDetect': sceneChangeDetect.toValue(),
    if (slices != null) 'slices': slices,
    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(),
    if (unregisteredSeiTimecode != null)
      'unregisteredSeiTimecode': unregisteredSeiTimecode.toValue(),
  };
}