VoiceNote.fromJson constructor
Parse from a json
Implementation
factory VoiceNote.fromJson(Map<String, dynamic> json) => VoiceNote(
duration: json['duration'],
waveform: json['waveform'],
mimeType: json['mime_type'],
speechRecognitionResult: json['speech_recognition_result'] == null
? null
: SpeechRecognitionResult.fromJson(
json['speech_recognition_result']),
voice: File.fromJson(json['voice']),
);