InlineQueryResultVenue.fromJson constructor
Constructs an InlineQueryResultVenue object from a JSON map
Implementation
factory InlineQueryResultVenue.fromJson(Map<String, dynamic> json) {
return InlineQueryResultVenue(
latitude: json['latitude'] as double,
longitude: json['longitude'] as double,
title: json['title'] as String,
address: json['address'] as String,
id: json['id'] as String,
foursquareId: json['foursquare_id'] as String?,
foursquareType: json['foursquare_type'] as String?,
googlePlaceId: json['google_place_id'] as String?,
googlePlaceType: json['google_place_type'] as String?,
replyMarkup: json['reply_markup'] == null
? null
: InlineKeyboardMarkup.fromJson(
json['reply_markup'] as Map<String, dynamic>,
),
inputMessageContent: json['input_message_content'] == null
? null
: InputMessageContent.fromJson(
json['input_message_content'] as Map<String, dynamic>,
),
thumbnailUrl: json['thumbnail_url'] as String?,
thumbnailWidth: json['thumbnail_width'] as int?,
thumbnailHeight: json['thumbnail_height'] as int?,
);
}