toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  return <String, Object?>{'type': type, if (sampleRate != null) 'sample_rate': sampleRate, if (bitrate != null) 'bitrate': bitrate};
}