RefundDestinationDetails.fromJson constructor
RefundDestinationDetails.fromJson(
- Object? json
Implementation
factory RefundDestinationDetails.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return RefundDestinationDetails(
affirm: map['affirm'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['affirm']),
afterpayClearpay: map['afterpay_clearpay'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['afterpay_clearpay']),
alipay: map['alipay'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['alipay']),
auBankTransfer: map['au_bank_transfer'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['au_bank_transfer']),
blik: map['blik'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['blik']),
brBankTransfer: map['br_bank_transfer'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['br_bank_transfer']),
card: map['card'] == null
? null
: RefundDestinationDetailsCard.fromJson(map['card']),
cashapp: map['cashapp'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['cashapp']),
customerCashBalance: map['customer_cash_balance'] == null
? null
: DestinationDetailsUnimplemented.fromJson(
map['customer_cash_balance']),
eps: map['eps'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['eps']),
euBankTransfer: map['eu_bank_transfer'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['eu_bank_transfer']),
gbBankTransfer: map['gb_bank_transfer'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['gb_bank_transfer']),
giropay: map['giropay'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['giropay']),
grabpay: map['grabpay'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['grabpay']),
jpBankTransfer: map['jp_bank_transfer'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['jp_bank_transfer']),
klarna: map['klarna'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['klarna']),
mxBankTransfer: map['mx_bank_transfer'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['mx_bank_transfer']),
p24: map['p24'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['p24']),
paynow: map['paynow'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['paynow']),
paypal: map['paypal'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['paypal']),
pix: map['pix'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['pix']),
revolut: map['revolut'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['revolut']),
sofort: map['sofort'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['sofort']),
swish: map['swish'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['swish']),
thBankTransfer: map['th_bank_transfer'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['th_bank_transfer']),
type: (map['type'] as String),
usBankTransfer: map['us_bank_transfer'] == null
? null
: RefundDestinationDetailsGeneric.fromJson(map['us_bank_transfer']),
wechatPay: map['wechat_pay'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['wechat_pay']),
zip: map['zip'] == null
? null
: DestinationDetailsUnimplemented.fromJson(map['zip']),
);
}