SetupIntentThreeDSecure.fromJson constructor
SetupIntentThreeDSecure.fromJson(
- Object? json
Implementation
factory SetupIntentThreeDSecure.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SetupIntentThreeDSecure(
aresTransStatus: map['ares_trans_status'] == null
? null
: PaymentIntentAresTransStatus.fromJson(map['ares_trans_status']),
cryptogram:
map['cryptogram'] == null ? null : (map['cryptogram'] as String),
electronicCommerceIndicator: map['electronic_commerce_indicator'] == null
? null
: PaymentIntentElectronicCommerceIndicator.fromJson(
map['electronic_commerce_indicator']),
networkOptions: map['network_options'] == null
? null
: PaymentIntentNetworkOptions.fromJson(map['network_options']),
requestorChallengeIndicator: map['requestor_challenge_indicator'] == null
? null
: (map['requestor_challenge_indicator'] as String),
transactionId: map['transaction_id'] == null
? null
: (map['transaction_id'] as String),
version: map['version'] == null
? null
: PaymentIntentVersion.fromJson(map['version']),
);
}