fromMap static method

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

Construct from Map.

Implementation

static PaymentProviderStripe? 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 publishable_key = _map['publishable_key']! as String;
  var need_country = _map['need_country']! as bool;
  var need_postal_code = _map['need_postal_code']! as bool;
  var need_cardholder_name = _map['need_cardholder_name']! as bool;
  return PaymentProviderStripe(
    extra: extra,
    clientId: clientId,
    publishable_key: publishable_key,
    need_country: need_country,
    need_postal_code: need_postal_code,
    need_cardholder_name: need_cardholder_name,
  );
}