SetupIntentCard.fromJson constructor
SetupIntentCard.fromJson(
- Object? json
Implementation
factory SetupIntentCard.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SetupIntentCard(
mandateOptions: map['mandate_options'] == null
? null
: SetupIntentMandateOptions.fromJson(map['mandate_options']),
moto: map['moto'] == null ? null : (map['moto'] as bool),
network: map['network'] == null
? null
: PaymentIntentNetwork.fromJson(map['network']),
requestThreeDSecure: map['request_three_d_secure'] == null
? null
: CheckoutCardPaymentMethodOptionsRequestThreeDSecure.fromJson(
map['request_three_d_secure']),
threeDSecure: map['three_d_secure'] == null
? null
: SetupIntentThreeDSecure.fromJson(map['three_d_secure']),
);
}