PaymentMethodCard.fromJson constructor

PaymentMethodCard.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory PaymentMethodCard.fromJson(Map<String, dynamic> jsonSerialization) {
  return PaymentMethodCard(
    brand: jsonSerialization['brand'] as String,
    last4: jsonSerialization['last4'] as String,
    expMonth: jsonSerialization['expMonth'] as int,
    expYear: jsonSerialization['expYear'] as int,
    funding: jsonSerialization['funding'] as String?,
    country: jsonSerialization['country'] as String?,
  );
}