InputInlineQueryResultVenue.fromJson constructor

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

Parse from a json

Implementation

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