toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'type': type,
'id': id,
'title': title,
'caption': caption,
'parse_mode': parseMode,
'caption_entities': captionEntities,
'document_url': documentUrl,
'mime_type': mimeType,
'description': description,
'reply_markup': replyMarkup,
'input_message_content': inputMessageContent,
'thumb_url': thumbUrl,
'thumb_width': thumbWidth,
'thumb_height': thumbHeight,
}..removeWhere((_, v) => v == null);
}