PaymentMethodCardCardDetailsParams.fromJson constructor
PaymentMethodCardCardDetailsParams.fromJson(
- Object? json
Implementation
factory PaymentMethodCardCardDetailsParams.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodCardCardDetailsParams(
cvc: map['cvc'] == null ? null : (map['cvc'] as String),
expMonth: (map['exp_month'] as num).toInt(),
expYear: (map['exp_year'] as num).toInt(),
networks: map['networks'] == null
? null
: PaymentMethodNetworks.fromJson(map['networks']),
number: (map['number'] as String),
);
}