fromMap static method
override
Construct from Map.
Implementation
static InputInlineQueryResultAnimation? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var id = _map['id']! as String;
var title = _map['title']! as String;
var thumbnail_url = _map['thumbnail_url']! as String;
var thumbnail_mime_type = _map['thumbnail_mime_type']! as String;
var video_url = _map['video_url']! as String;
var video_mime_type = _map['video_mime_type']! as String;
var video_duration = _map['video_duration']! as int;
var video_width = _map['video_width']! as int;
var video_height = _map['video_height']! as int;
var reply_markup = ReplyMarkup.fromMap(_map['reply_markup']);
var input_message_content =
InputMessageContent.fromMap(_map['input_message_content'])!;
return InputInlineQueryResultAnimation(
extra: extra,
clientId: clientId,
id: id,
title: title,
thumbnail_url: thumbnail_url,
thumbnail_mime_type: thumbnail_mime_type,
video_url: video_url,
video_mime_type: video_mime_type,
video_duration: video_duration,
video_width: video_width,
video_height: video_height,
reply_markup: reply_markup,
input_message_content: input_message_content,
);
}