toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final attenuationControl = this.attenuationControl;
  final bitrate = this.bitrate;
  final bitstreamMode = this.bitstreamMode;
  final codingMode = this.codingMode;
  final dcFilter = this.dcFilter;
  final dialnorm = this.dialnorm;
  final dynamicRangeCompressionLine = this.dynamicRangeCompressionLine;
  final dynamicRangeCompressionRf = this.dynamicRangeCompressionRf;
  final lfeControl = this.lfeControl;
  final lfeFilter = this.lfeFilter;
  final loRoCenterMixLevel = this.loRoCenterMixLevel;
  final loRoSurroundMixLevel = this.loRoSurroundMixLevel;
  final ltRtCenterMixLevel = this.ltRtCenterMixLevel;
  final ltRtSurroundMixLevel = this.ltRtSurroundMixLevel;
  final metadataControl = this.metadataControl;
  final passthroughControl = this.passthroughControl;
  final phaseControl = this.phaseControl;
  final sampleRate = this.sampleRate;
  final stereoDownmix = this.stereoDownmix;
  final surroundExMode = this.surroundExMode;
  final surroundMode = this.surroundMode;
  return {
    if (attenuationControl != null)
      'attenuationControl': attenuationControl.toValue(),
    if (bitrate != null) 'bitrate': bitrate,
    if (bitstreamMode != null) 'bitstreamMode': bitstreamMode.toValue(),
    if (codingMode != null) 'codingMode': codingMode.toValue(),
    if (dcFilter != null) 'dcFilter': dcFilter.toValue(),
    if (dialnorm != null) 'dialnorm': dialnorm,
    if (dynamicRangeCompressionLine != null)
      'dynamicRangeCompressionLine': dynamicRangeCompressionLine.toValue(),
    if (dynamicRangeCompressionRf != null)
      'dynamicRangeCompressionRf': dynamicRangeCompressionRf.toValue(),
    if (lfeControl != null) 'lfeControl': lfeControl.toValue(),
    if (lfeFilter != null) 'lfeFilter': lfeFilter.toValue(),
    if (loRoCenterMixLevel != null) 'loRoCenterMixLevel': loRoCenterMixLevel,
    if (loRoSurroundMixLevel != null)
      'loRoSurroundMixLevel': loRoSurroundMixLevel,
    if (ltRtCenterMixLevel != null) 'ltRtCenterMixLevel': ltRtCenterMixLevel,
    if (ltRtSurroundMixLevel != null)
      'ltRtSurroundMixLevel': ltRtSurroundMixLevel,
    if (metadataControl != null) 'metadataControl': metadataControl.toValue(),
    if (passthroughControl != null)
      'passthroughControl': passthroughControl.toValue(),
    if (phaseControl != null) 'phaseControl': phaseControl.toValue(),
    if (sampleRate != null) 'sampleRate': sampleRate,
    if (stereoDownmix != null) 'stereoDownmix': stereoDownmix.toValue(),
    if (surroundExMode != null) 'surroundExMode': surroundExMode.toValue(),
    if (surroundMode != null) 'surroundMode': surroundMode.toValue(),
  };
}