Map<String, dynamic> toMap() { return { 'audioPath': audioPath, 'language': language, if (timestamps != null) 'timestamps': timestamps, }; }