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