SubscriptionPaymentMethodOptionsCard.fromJson constructor
SubscriptionPaymentMethodOptionsCard.fromJson(
- Object? json
Implementation
factory SubscriptionPaymentMethodOptionsCard.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SubscriptionPaymentMethodOptionsCard(
mandateOptions: map['mandate_options'] == null
? null
: InvoiceMandateOptionsCard.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']),
);
}