toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'type': type,
    'id': id,
    'video_url': videoUrl,
    'mime_type': mimeType,
    'thumb_url': thumbUrl,
    'title': title,
    'caption': caption,
    'parse_mode': parseMode,
    'caption_entities': captionEntities,
    'video_width': videoWidth,
    'video_height': videoHeight,
    'video_duration': videoDuration,
    'description': description,
    'reply_markup': replyMarkup,
    'input_message_content': inputMessageContent,
  }..removeWhere((_, v) => v == null);
}