InputInlineQueryResultLocation.fromJson constructor

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

Parse from a json

Implementation

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