toJson method
Converts an InlineQueryResultPhoto object to a JSON object
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.value,
'photo_url': photoUrl,
'thumbnail_url': thumbnailUrl,
'photo_width': photoWidth,
'photo_height': photoHeight,
'title': title,
'description': description,
'caption': caption,
'parse_mode': parseMode?.value,
'caption_entities': captionEntities?.map((e) => e.toJson()).toList(),
'reply_markup': replyMarkup?.toJson(),
'input_message_content': inputMessageContent?.toJson(),
'id': id,
'show_caption_above_media': showCaptionAboveMedia,
}..removeWhere(_nullFilter);
}