toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bitrate = this.bitrate;
  final bitstreamMode = this.bitstreamMode;
  final codingMode = this.codingMode;
  final dialnorm = this.dialnorm;
  final dynamicRangeCompressionProfile = this.dynamicRangeCompressionProfile;
  final lfeFilter = this.lfeFilter;
  final metadataControl = this.metadataControl;
  final sampleRate = this.sampleRate;
  return {
    if (bitrate != null) 'bitrate': bitrate,
    if (bitstreamMode != null) 'bitstreamMode': bitstreamMode.toValue(),
    if (codingMode != null) 'codingMode': codingMode.toValue(),
    if (dialnorm != null) 'dialnorm': dialnorm,
    if (dynamicRangeCompressionProfile != null)
      'dynamicRangeCompressionProfile':
          dynamicRangeCompressionProfile.toValue(),
    if (lfeFilter != null) 'lfeFilter': lfeFilter.toValue(),
    if (metadataControl != null) 'metadataControl': metadataControl.toValue(),
    if (sampleRate != null) 'sampleRate': sampleRate,
  };
}