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