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