toJson method
Converts the AudioRecording to a JSON map
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'filePath': filePath,
'title': title,
'sampleRate': sampleRate,
'channels': channels,
'bitDepth': bitDepth,
'durationMs': durationMs,
'timestamp': timestamp,
};
}