OutboundPaymentsPaymentMethodDetails.fromJson constructor
OutboundPaymentsPaymentMethodDetails.fromJson(
- Object? json
Implementation
factory OutboundPaymentsPaymentMethodDetails.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return OutboundPaymentsPaymentMethodDetails(
billingDetails:
TreasurySharedResourceBillingDetails.fromJson(map['billing_details']),
financialAccount: map['financial_account'] == null
? null
: OutboundPaymentsPaymentMethodDetailsFinancialAccount.fromJson(
map['financial_account']),
type: OutboundPaymentsPaymentMethodDetailsType.fromJson(map['type']),
usBankAccount: map['us_bank_account'] == null
? null
: OutboundPaymentsPaymentMethodDetailsUsBankAccount.fromJson(
map['us_bank_account']),
);
}