TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails.fromJson constructor
TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails.fromJson(
- Object? json
Implementation
factory TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails(
billingDetails:
TreasurySharedResourceBillingDetails.fromJson(map['billing_details']),
financialAccount: map['financial_account'] == null
? null
: ReceivedPaymentMethodDetailsFinancialAccount.fromJson(
map['financial_account']),
issuingCard:
map['issuing_card'] == null ? null : (map['issuing_card'] as String),
type:
TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsType
.fromJson(map['type']),
usBankAccount: map['us_bank_account'] == null
? null
: TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount
.fromJson(map['us_bank_account']),
);
}