InputInlineQueryResultArticle.fromJson constructor

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

Parse from a json

Implementation

factory InputInlineQueryResultArticle.fromJson(Map<String, dynamic> json) =>
    InputInlineQueryResultArticle(
      id: json['id'],
      url: json['url'],
      hideUrl: json['hide_url'],
      title: json['title'],
      description: json['description'],
      thumbnailUrl: json['thumbnail_url'],
      thumbnailWidth: json['thumbnail_width'],
      thumbnailHeight: json['thumbnail_height'],
      replyMarkup: json['reply_markup'] == null
          ? null
          : ReplyMarkup.fromJson(json['reply_markup']),
      inputMessageContent:
          InputMessageContent.fromJson(json['input_message_content']),
    );