IssuingAuthorizationVerificationData.fromJson constructor

IssuingAuthorizationVerificationData.fromJson(
  1. Object? json
)

Implementation

factory IssuingAuthorizationVerificationData.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingAuthorizationVerificationData(
    addressLine1Check:
        IssuingAuthorizationVerificationDataAddressLine1Check.fromJson(
            map['address_line1_check']),
    addressPostalCodeCheck:
        IssuingAuthorizationVerificationDataAddressLine1Check.fromJson(
            map['address_postal_code_check']),
    authenticationExemption: map['authentication_exemption'] == null
        ? null
        : IssuingAuthorizationAuthenticationExemption.fromJson(
            map['authentication_exemption']),
    cvcCheck: IssuingAuthorizationVerificationDataAddressLine1Check.fromJson(
        map['cvc_check']),
    expiryCheck:
        IssuingAuthorizationVerificationDataAddressLine1Check.fromJson(
            map['expiry_check']),
    postalCode:
        map['postal_code'] == null ? null : (map['postal_code'] as String),
    threeDSecure: map['three_d_secure'] == null
        ? null
        : IssuingAuthorizationThreeDSecure.fromJson(map['three_d_secure']),
  );
}