PaymentMethodDetailsCardThreeDSecure.fromJson constructor
PaymentMethodDetailsCardThreeDSecure.fromJson(
- Object? json
Implementation
factory PaymentMethodDetailsCardThreeDSecure.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodDetailsCardThreeDSecure(
authenticationFlow: map['authentication_flow'] == null
? null
: PaymentMethodDetailsCardThreeDSecureAuthenticationFlow.fromJson(
map['authentication_flow']),
electronicCommerceIndicator: map['electronic_commerce_indicator'] == null
? null
: PaymentMethodDetailsCardThreeDSecureElectronicCommerceIndicator
.fromJson(map['electronic_commerce_indicator']),
exemptionIndicator: map['exemption_indicator'] == null
? null
: PaymentMethodDetailsCardThreeDSecureExemptionIndicator.fromJson(
map['exemption_indicator']),
exemptionIndicatorApplied: map['exemption_indicator_applied'] == null
? null
: (map['exemption_indicator_applied'] as bool),
result: map['result'] == null
? null
: PaymentMethodDetailsCardThreeDSecureResult.fromJson(map['result']),
resultReason: map['result_reason'] == null
? null
: PaymentMethodDetailsCardThreeDSecureResultReason.fromJson(
map['result_reason']),
transactionId: map['transaction_id'] == null
? null
: (map['transaction_id'] as String),
version: map['version'] == null
? null
: PaymentMethodDetailsCardThreeDSecureVersion.fromJson(
map['version']),
);
}