SetupIntentPaymentMethodOptionsCard.fromJson constructor
SetupIntentPaymentMethodOptionsCard.fromJson(
- Object? json
Implementation
factory SetupIntentPaymentMethodOptionsCard.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SetupIntentPaymentMethodOptionsCard(
mandateOptions: map['mandate_options'] == null
? null
: SetupIntentPaymentMethodOptionsCardMandateOptions.fromJson(
map['mandate_options']),
network: map['network'] == null
? null
: PaymentIntentPaymentMethodOptionsCardNetwork.fromJson(
map['network']),
requestThreeDSecure: map['request_three_d_secure'] == null
? null
: InvoicePaymentMethodOptionsCardRequestThreeDSecure.fromJson(
map['request_three_d_secure']),
);
}