InputInlineQueryResultLocation.fromJson constructor

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

Parses a InputInlineQueryResultLocation from TDLib JSON.

Implementation

factory InputInlineQueryResultLocation.fromJson(Map<String, dynamic> json) =>
    InputInlineQueryResultLocation(
      id: _readString(json['id']),
      location: _readObject(json['location'], Location.fromJson),
      livePeriod: _readInt(json['live_period']),
      title: _readString(json['title']),
      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),
    );