toJson method
Converts an InlineQueryResultGif object to a JSON map
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.value,
'id': id,
'gif_url': gifUrl,
'gif_width': gifWidth,
'gif_height': gifHeight,
'gif_duration': gifDuration,
'thumbnail_url': thumbnailUrl,
'thumbnail_mime_type': thumbnailMimeType,
'title': title,
'caption': caption,
'parse_mode': parseMode?.value,
'caption_entities': captionEntities,
'reply_markup': replyMarkup,
'input_message_content': inputMessageContent,
'show_caption_above_media': showCaptionAboveMedia,
}..removeWhere(_nullFilter);
}