AuthorizationVerificationData.fromJson constructor

AuthorizationVerificationData.fromJson(
  1. Object? json
)

Implementation

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