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