fromMap static method
override
Construct from Map.
Implementation
static AnswerCallbackQuery? 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 callback_query_id = _map['callback_query_id']! as int64;
var text = _map['text']! as String;
var show_alert = _map['show_alert']! as bool;
var url = _map['url']! as String;
var cache_time = _map['cache_time']! as int;
return AnswerCallbackQuery(
extra: extra,
clientId: clientId,
callback_query_id: callback_query_id,
text: text,
show_alert: show_alert,
url: url,
cache_time: cache_time,
);
}