InputInlineQueryResultVideo.fromJson constructor

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

Parses a InputInlineQueryResultVideo from TDLib JSON.

Implementation

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