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