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