toJson method
Converts an InlineQueryResultCachedPhoto object to a JSON map
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.value,
'photo_file_id': photoFileId,
'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);
}