toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'type': type,
'id': id,
'mpeg4_url': mpeg4Url,
'mpeg4_width': mpeg4Width,
'mpeg4_height': mpeg4Height,
'mpeg4_duration': mpeg4Duration,
'thumb_url': thumbUrl,
'thumb_mime_type': thumbMimeType,
'title': title,
'caption': caption,
'parse_mode': parseMode,
'caption_entities': captionEntities,
'reply_markup': replyMarkup,
'input_message_content': inputMessageContent,
}..removeWhere((_, v) => v == null);
}