toJson method

Map<String, dynamic> toJson()

Implementation

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