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