toJson method
Converts a Voice object to JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'file_id': fileId,
'file_unique_id': fileUniqueId,
'duration': duration,
'mime_type': mimeType,
'file_size': fileSize,
}..removeWhere(_nullFilter);
}