InputInlineQueryResultContact.fromJson constructor

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

Parse from a json

Implementation

factory InputInlineQueryResultContact.fromJson(Map<String, dynamic> json) =>
    InputInlineQueryResultContact(
      id: json['id'],
      contact: Contact.fromJson(json['contact']),
      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']),
    );