fromMap static method
override
Construct from Map.
Implementation
static AnswerPreCheckoutQuery? 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 pre_checkout_query_id = _map['pre_checkout_query_id']! as int64;
var error_message = _map['error_message']! as String;
return AnswerPreCheckoutQuery(
extra: extra,
clientId: clientId,
pre_checkout_query_id: pre_checkout_query_id,
error_message: error_message,
);
}