InputInlineQueryResultContact.fromJson constructor

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

Parses a InputInlineQueryResultContact from TDLib JSON.

Implementation

factory InputInlineQueryResultContact.fromJson(Map<String, dynamic> json) =>
    InputInlineQueryResultContact(
      id: _readString(json['id']),
      contact: _readObject(json['contact'], Contact.fromJson),
      thumbnailUrl: _readString(json['thumbnail_url']),
      thumbnailWidth: _readInt(json['thumbnail_width']),
      thumbnailHeight: _readInt(json['thumbnail_height']),
      replyMarkup: _readOptional(json['reply_markup'], ReplyMarkup.fromJson),
      inputMessageContent: _readObject(
          json['input_message_content'], InputMessageContent.fromJson),
    );