toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final channels = this.channels;
  final sampleRate = this.sampleRate;
  final vbrQuality = this.vbrQuality;
  return {
    if (channels != null) 'channels': channels,
    if (sampleRate != null) 'sampleRate': sampleRate,
    if (vbrQuality != null) 'vbrQuality': vbrQuality,
  };
}