fromMap static method

ValidateOrderInfo? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static ValidateOrderInfo? 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 input_invoice = InputInvoice.fromMap(_map['input_invoice'])!;
  var order_info = OrderInfo.fromMap(_map['order_info']);
  var allow_save = _map['allow_save']! as bool;
  return ValidateOrderInfo(
    extra: extra,
    clientId: clientId,
    input_invoice: input_invoice,
    order_info: order_info,
    allow_save: allow_save,
  );
}