InputInlineQueryResultVideo.fromJson constructor

InputInlineQueryResultVideo.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory InputInlineQueryResultVideo.fromJson(Map<String, dynamic> json) =>
    InputInlineQueryResultVideo(
      id: json['id'],
      title: json['title'],
      description: json['description'],
      thumbnailUrl: json['thumbnail_url'],
      videoUrl: json['video_url'],
      mimeType: json['mime_type'],
      videoWidth: json['video_width'],
      videoHeight: json['video_height'],
      videoDuration: json['video_duration'],
      replyMarkup: json['reply_markup'] == null
          ? null
          : ReplyMarkup.fromJson(json['reply_markup']),
      inputMessageContent:
          InputMessageContent.fromJson(json['input_message_content']),
    );