@override Object toJson() => { if (sampleRate.isNotDefault) 'sampleRate': encodeDouble(sampleRate), };