fromMap static method

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

Construct from Map.

Implementation

static GetPaymentForm? 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 theme = ThemeParameters.fromMap(_map['theme']);
  return GetPaymentForm(
    extra: extra,
    clientId: clientId,
    input_invoice: input_invoice,
    theme: theme,
  );
}