InlineQueryResultArticle.fromJson constructor
De-serializes a InlineQueryResultArticle object from a JSON map
Implementation
factory InlineQueryResultArticle.fromJson(Map<String, dynamic> json) {
return InlineQueryResultArticle(
title: json['title'] as String,
inputMessageContent: InputMessageContent.fromJson(
json['input_message_content'] as Map<String, dynamic>,
),
id: json['id'] as String,
replyMarkup: json['reply_markup'] == null
? null
: InlineKeyboardMarkup.fromJson(
json['reply_markup'] as Map<String, dynamic>,
),
url: json['url'] as String?,
hideUrl: json['hide_url'] as bool?,
description: json['description'] as String?,
thumbnailUrl: json['thumbnail_url'] as String?,
thumbnailWidth: json['thumbnail_width'] as int?,
thumbnailHeight: json['thumbnail_height'] as int?,
);
}