InlineQueryResultContact.fromJson constructor
Constructs an InlineQueryResultContact object from a JSON map
Implementation
factory InlineQueryResultContact.fromJson(Map<String, dynamic> json) {
return InlineQueryResultContact(
phoneNumber: json['phone_number'] as String,
firstName: json['first_name'] as String,
id: json['id'] as String,
lastName: json['last_name'] as String?,
vcard: json['vcard'] as String?,
replyMarkup: json['reply_markup'] == null
? null
: InlineKeyboardMarkup.fromJson(
json['reply_markup'] as Map<String, dynamic>,
),
inputMessageContent: json['input_message_content'] == null
? null
: InputMessageContent.fromJson(
json['input_message_content'] as Map<String, dynamic>,
),
thumbnailUrl: json['thumbnail_url'] as String?,
thumbnailWidth: json['thumbnail_width'] as int?,
thumbnailHeight: json['thumbnail_height'] as int?,
);
}