PaymentMethodCardChecks.fromJson constructor

PaymentMethodCardChecks.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodCardChecks.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodCardChecks(
    addressLine1Check: map['address_line1_check'] == null
        ? null
        : (map['address_line1_check'] as String),
    addressPostalCodeCheck: map['address_postal_code_check'] == null
        ? null
        : (map['address_postal_code_check'] as String),
    cvcCheck: map['cvc_check'] == null ? null : (map['cvc_check'] as String),
  );
}