toJson method
Converts InlineQueryResultVideo object to a JSON object
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.value,
'video_url': videoUrl,
'mime_type': mimeType,
'thumbnail_url': thumbnailUrl,
'title': title,
'caption': caption,
'parse_mode': parseMode?.value,
'caption_entities': captionEntities?.map((e) => e.toJson()).toList(),
'video_width': videoWidth,
'video_height': videoHeight,
'video_duration': videoDuration,
'description': description,
'reply_markup': replyMarkup?.toJson(),
'input_message_content': inputMessageContent?.toJson(),
'id': id,
'show_caption_above_media': showCaptionAboveMedia,
}..removeWhere(_nullFilter);
}