toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'type': type,
'id': id,
'photo_url': photoUrl,
'thumb_url': thumbUrl,
'photo_width': photoWidth,
'photo_height': photoHeight,
'title': title,
'description': description,
'caption': caption,
'parse_mode': parseMode,
'caption_entities': captionEntities,
'reply_markup': replyMarkup,
'input_message_content': inputMessageContent,
}..removeWhere((_, v) => v == null);
}