toJson method

Map<String, dynamic> toJson()

Implementation

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