toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final framerateDenominator = this.framerateDenominator;
  final framerateNumerator = this.framerateNumerator;
  final adaptiveQuantization = this.adaptiveQuantization;
  final afdSignaling = this.afdSignaling;
  final alternativeTransferFunction = this.alternativeTransferFunction;
  final bitrate = this.bitrate;
  final bufSize = this.bufSize;
  final colorMetadata = this.colorMetadata;
  final colorSpaceSettings = this.colorSpaceSettings;
  final filterSettings = this.filterSettings;
  final fixedAfd = this.fixedAfd;
  final flickerAq = this.flickerAq;
  final gopClosedCadence = this.gopClosedCadence;
  final gopSize = this.gopSize;
  final gopSizeUnits = this.gopSizeUnits;
  final level = this.level;
  final lookAheadRateControl = this.lookAheadRateControl;
  final maxBitrate = this.maxBitrate;
  final minIInterval = this.minIInterval;
  final parDenominator = this.parDenominator;
  final parNumerator = this.parNumerator;
  final profile = this.profile;
  final qvbrQualityLevel = this.qvbrQualityLevel;
  final rateControlMode = this.rateControlMode;
  final scanType = this.scanType;
  final sceneChangeDetect = this.sceneChangeDetect;
  final slices = this.slices;
  final tier = this.tier;
  final timecodeInsertion = this.timecodeInsertion;
  return {
    'framerateDenominator': framerateDenominator,
    'framerateNumerator': framerateNumerator,
    if (adaptiveQuantization != null)
      'adaptiveQuantization': adaptiveQuantization.toValue(),
    if (afdSignaling != null) 'afdSignaling': afdSignaling.toValue(),
    if (alternativeTransferFunction != null)
      'alternativeTransferFunction': alternativeTransferFunction.toValue(),
    if (bitrate != null) 'bitrate': bitrate,
    if (bufSize != null) 'bufSize': bufSize,
    if (colorMetadata != null) 'colorMetadata': colorMetadata.toValue(),
    if (colorSpaceSettings != null) 'colorSpaceSettings': colorSpaceSettings,
    if (filterSettings != null) 'filterSettings': filterSettings,
    if (fixedAfd != null) 'fixedAfd': fixedAfd.toValue(),
    if (flickerAq != null) 'flickerAq': flickerAq.toValue(),
    if (gopClosedCadence != null) 'gopClosedCadence': gopClosedCadence,
    if (gopSize != null) 'gopSize': gopSize,
    if (gopSizeUnits != null) 'gopSizeUnits': gopSizeUnits.toValue(),
    if (level != null) 'level': level.toValue(),
    if (lookAheadRateControl != null)
      'lookAheadRateControl': lookAheadRateControl.toValue(),
    if (maxBitrate != null) 'maxBitrate': maxBitrate,
    if (minIInterval != null) 'minIInterval': minIInterval,
    if (parDenominator != null) 'parDenominator': parDenominator,
    if (parNumerator != null) 'parNumerator': parNumerator,
    if (profile != null) 'profile': profile.toValue(),
    if (qvbrQualityLevel != null) 'qvbrQualityLevel': qvbrQualityLevel,
    if (rateControlMode != null) 'rateControlMode': rateControlMode.toValue(),
    if (scanType != null) 'scanType': scanType.toValue(),
    if (sceneChangeDetect != null)
      'sceneChangeDetect': sceneChangeDetect.toValue(),
    if (slices != null) 'slices': slices,
    if (tier != null) 'tier': tier.toValue(),
    if (timecodeInsertion != null)
      'timecodeInsertion': timecodeInsertion.toValue(),
  };
}