toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'voiceNote',
if (extra != null) '@extra': extra,
'duration': duration,
'waveform': waveform,
'mime_type': mime_type,
'speech_recognition_result': speech_recognition_result,
'voice': voice
};
}