getValue method
Converts an InputMediaPhoto object to a JSON object
Implementation
@override
Map<String, dynamic> getValue([String? field, String? thumb]) {
return {
'type': type.value,
'media': media.getValue(field),
'caption': caption,
'parse_mode': parseMode?.value,
'caption_entities': captionEntities,
'has_spoiler': hasSpoiler,
'show_caption_above_media': showCaptionAboveMedia,
}..removeWhere(_nullFilter);
}