toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final aacSettings = this.aacSettings;
  final ac3Settings = this.ac3Settings;
  final aiffSettings = this.aiffSettings;
  final codec = this.codec;
  final eac3AtmosSettings = this.eac3AtmosSettings;
  final eac3Settings = this.eac3Settings;
  final mp2Settings = this.mp2Settings;
  final mp3Settings = this.mp3Settings;
  final opusSettings = this.opusSettings;
  final vorbisSettings = this.vorbisSettings;
  final wavSettings = this.wavSettings;
  return {
    if (aacSettings != null) 'aacSettings': aacSettings,
    if (ac3Settings != null) 'ac3Settings': ac3Settings,
    if (aiffSettings != null) 'aiffSettings': aiffSettings,
    if (codec != null) 'codec': codec.toValue(),
    if (eac3AtmosSettings != null) 'eac3AtmosSettings': eac3AtmosSettings,
    if (eac3Settings != null) 'eac3Settings': eac3Settings,
    if (mp2Settings != null) 'mp2Settings': mp2Settings,
    if (mp3Settings != null) 'mp3Settings': mp3Settings,
    if (opusSettings != null) 'opusSettings': opusSettings,
    if (vorbisSettings != null) 'vorbisSettings': vorbisSettings,
    if (wavSettings != null) 'wavSettings': wavSettings,
  };
}