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