toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final adaptiveQuantization = this.adaptiveQuantization;
  final alternateTransferFunctionSei = this.alternateTransferFunctionSei;
  final bitrate = this.bitrate;
  final codecLevel = this.codecLevel;
  final codecProfile = this.codecProfile;
  final dynamicSubGop = this.dynamicSubGop;
  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 sampleAdaptiveOffsetFilterMode = this.sampleAdaptiveOffsetFilterMode;
  final sceneChangeDetect = this.sceneChangeDetect;
  final slices = this.slices;
  final slowPal = this.slowPal;
  final spatialAdaptiveQuantization = this.spatialAdaptiveQuantization;
  final telecine = this.telecine;
  final temporalAdaptiveQuantization = this.temporalAdaptiveQuantization;
  final temporalIds = this.temporalIds;
  final tiles = this.tiles;
  final unregisteredSeiTimecode = this.unregisteredSeiTimecode;
  final writeMp4PackagingType = this.writeMp4PackagingType;
  return {
    if (adaptiveQuantization != null)
      'adaptiveQuantization': adaptiveQuantization.toValue(),
    if (alternateTransferFunctionSei != null)
      'alternateTransferFunctionSei': alternateTransferFunctionSei.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 (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 (sampleAdaptiveOffsetFilterMode != null)
      'sampleAdaptiveOffsetFilterMode':
          sampleAdaptiveOffsetFilterMode.toValue(),
    if (sceneChangeDetect != null)
      'sceneChangeDetect': sceneChangeDetect.toValue(),
    if (slices != null) 'slices': slices,
    if (slowPal != null) 'slowPal': slowPal.toValue(),
    if (spatialAdaptiveQuantization != null)
      'spatialAdaptiveQuantization': spatialAdaptiveQuantization.toValue(),
    if (telecine != null) 'telecine': telecine.toValue(),
    if (temporalAdaptiveQuantization != null)
      'temporalAdaptiveQuantization': temporalAdaptiveQuantization.toValue(),
    if (temporalIds != null) 'temporalIds': temporalIds.toValue(),
    if (tiles != null) 'tiles': tiles.toValue(),
    if (unregisteredSeiTimecode != null)
      'unregisteredSeiTimecode': unregisteredSeiTimecode.toValue(),
    if (writeMp4PackagingType != null)
      'writeMp4PackagingType': writeMp4PackagingType.toValue(),
  };
}