InputInlineQueryResultPhoto.fromJson constructor

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

Parses a InputInlineQueryResultPhoto from TDLib JSON.

Implementation

factory InputInlineQueryResultPhoto.fromJson(Map<String, dynamic> json) =>
    InputInlineQueryResultPhoto(
      id: _readString(json['id']),
      title: _readString(json['title']),
      description: _readString(json['description']),
      thumbnailUrl: _readString(json['thumbnail_url']),
      photoUrl: _readString(json['photo_url']),
      photoWidth: _readInt(json['photo_width']),
      photoHeight: _readInt(json['photo_height']),
      replyMarkup: _readOptional(json['reply_markup'], ReplyMarkup.fromJson),
      inputMessageContent: _readObject(
          json['input_message_content'], InputMessageContent.fromJson),
    );