fromJson static method
Inherited by: InlineQueryResultAnimation InlineQueryResultArticle InlineQueryResultAudio InlineQueryResultContact InlineQueryResultDocument InlineQueryResultGame InlineQueryResultLocation InlineQueryResultPhoto InlineQueryResultSticker InlineQueryResultVenue InlineQueryResultVideo InlineQueryResultVoiceNote
Implementation
static InlineQueryResultLocation? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InlineQueryResultLocation(
id: (json['id'] as String?) ?? '',
location: Location.fromJson(tdMapFromJson(json['location'])),
title: (json['title'] as String?) ?? '',
thumbnail: Thumbnail.fromJson(tdMapFromJson(json['thumbnail'])),
);
}