PaymentIntentNextAction.fromJson constructor
PaymentIntentNextAction.fromJson(
- Object? json
Implementation
factory PaymentIntentNextAction.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentNextAction(
alipayHandleRedirect: map['alipay_handle_redirect'] == null
? null
: PaymentIntentNextActionAlipayHandleRedirect.fromJson(
map['alipay_handle_redirect']),
boletoDisplayDetails: map['boleto_display_details'] == null
? null
: PaymentIntentNextActionBoleto.fromJson(
map['boleto_display_details']),
cardAwaitNotification: map['card_await_notification'] == null
? null
: PaymentIntentNextActionCardAwaitNotification.fromJson(
map['card_await_notification']),
cashappHandleRedirectOrDisplayQrCode:
map['cashapp_handle_redirect_or_display_qr_code'] == null
? null
: PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode
.fromJson(map['cashapp_handle_redirect_or_display_qr_code']),
displayBankTransferInstructions:
map['display_bank_transfer_instructions'] == null
? null
: PaymentIntentNextActionDisplayBankTransferInstructions.fromJson(
map['display_bank_transfer_instructions']),
konbiniDisplayDetails: map['konbini_display_details'] == null
? null
: PaymentIntentNextActionKonbini.fromJson(
map['konbini_display_details']),
oxxoDisplayDetails: map['oxxo_display_details'] == null
? null
: PaymentIntentNextActionDisplayOxxoDetails.fromJson(
map['oxxo_display_details']),
paynowDisplayQrCode: map['paynow_display_qr_code'] == null
? null
: PaymentIntentNextActionPaynowDisplayQrCode.fromJson(
map['paynow_display_qr_code']),
pixDisplayQrCode: map['pix_display_qr_code'] == null
? null
: PaymentIntentNextActionPixDisplayQrCode.fromJson(
map['pix_display_qr_code']),
promptpayDisplayQrCode: map['promptpay_display_qr_code'] == null
? null
: PaymentIntentNextActionPromptpayDisplayQrCode.fromJson(
map['promptpay_display_qr_code']),
redirectToUrl: map['redirect_to_url'] == null
? null
: PaymentIntentNextActionRedirectToUrl.fromJson(
map['redirect_to_url']),
swishHandleRedirectOrDisplayQrCode:
map['swish_handle_redirect_or_display_qr_code'] == null
? null
: PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode
.fromJson(map['swish_handle_redirect_or_display_qr_code']),
type: (map['type'] as String),
useStripeSdk: map['use_stripe_sdk'] == null
? null
: (map['use_stripe_sdk'] as Object),
verifyWithMicrodeposits: map['verify_with_microdeposits'] == null
? null
: PaymentIntentNextActionVerifyWithMicrodeposits.fromJson(
map['verify_with_microdeposits']),
wechatPayDisplayQrCode: map['wechat_pay_display_qr_code'] == null
? null
: PaymentIntentNextActionWechatPayDisplayQrCode.fromJson(
map['wechat_pay_display_qr_code']),
wechatPayRedirectToAndroidApp:
map['wechat_pay_redirect_to_android_app'] == null
? null
: PaymentIntentNextActionWechatPayRedirectToAndroidApp.fromJson(
map['wechat_pay_redirect_to_android_app']),
wechatPayRedirectToIosApp: map['wechat_pay_redirect_to_ios_app'] == null
? null
: PaymentIntentNextActionWechatPayRedirectToIosApp.fromJson(
map['wechat_pay_redirect_to_ios_app']),
);
}