PaymentIntentPaymentMethodOptionsCard.fromJson constructor
PaymentIntentPaymentMethodOptionsCard.fromJson(
- Object? json
Implementation
factory PaymentIntentPaymentMethodOptionsCard.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentPaymentMethodOptionsCard(
installments: map['installments'] == null
? null
: PaymentIntentPaymentMethodOptionsCardInstallments.fromJson(
map['installments']),
mandateOptions: map['mandate_options'] == null
? null
: PaymentIntentPaymentMethodOptionsCardMandateOptions.fromJson(
map['mandate_options']),
network: map['network'] == null
? null
: PaymentIntentPaymentMethodOptionsCardNetwork.fromJson(
map['network']),
requestExtendedAuthorization: map['request_extended_authorization'] ==
null
? null
: PaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization
.fromJson(map['request_extended_authorization']),
requestIncrementalAuthorization: map[
'request_incremental_authorization'] ==
null
? null
: PaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization
.fromJson(map['request_incremental_authorization']),
requestMulticapture: map['request_multicapture'] == null
? null
: PaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization
.fromJson(map['request_multicapture']),
requestOvercapture: map['request_overcapture'] == null
? null
: PaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization
.fromJson(map['request_overcapture']),
requestThreeDSecure: map['request_three_d_secure'] == null
? null
: InvoicePaymentMethodOptionsCardRequestThreeDSecure.fromJson(
map['request_three_d_secure']),
requireCvcRecollection: map['require_cvc_recollection'] == null
? null
: (map['require_cvc_recollection'] as bool),
setupFutureUsage: map['setup_future_usage'] == null
? null
: CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage.fromJson(
map['setup_future_usage']),
statementDescriptorSuffixKana:
map['statement_descriptor_suffix_kana'] == null
? null
: (map['statement_descriptor_suffix_kana'] as String),
statementDescriptorSuffixKanji:
map['statement_descriptor_suffix_kanji'] == null
? null
: (map['statement_descriptor_suffix_kanji'] as String),
);
}