InlineQueryResultLocation.fromJson constructor
Constructs an InlineQueryResultLocation object from a JSON map
Implementation
factory InlineQueryResultLocation.fromJson(Map<String, dynamic> json) {
return InlineQueryResultLocation(
latitude: json['latitude'] as double,
longitude: json['longitude'] as double,
title: json['title'] as String,
id: json['id'] as String,
horizontalAccuracy: json['horizontal_accuracy'] as int?,
livePeriod: json['live_period'] as int?,
heading: json['heading'] as int?,
proximityAlertRadius: json['proximity_alert_radius'] as int?,
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?,
);
}