fromMap static method
override
Construct from Map.
Implementation
static AnswerShippingQuery? 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 shipping_query_id = _map['shipping_query_id']! as int64;
var shipping_options = List<ShippingOption>.from(
(_map["shipping_options"] ?? []).map(
(e) => ShippingOption.fromMap(e),
),
);
var error_message = _map['error_message']! as String;
return AnswerShippingQuery(
extra: extra,
clientId: clientId,
shipping_query_id: shipping_query_id,
shipping_options: shipping_options,
error_message: error_message,
);
}