toJson method

Map<String, dynamic> toJson()

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,
  };
}