OutboundTransfersPaymentMethodDetails.fromJson constructor

OutboundTransfersPaymentMethodDetails.fromJson(
  1. Object? json
)

Implementation

factory OutboundTransfersPaymentMethodDetails.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return OutboundTransfersPaymentMethodDetails(
    billingDetails:
        TreasurySharedResourceBillingDetails.fromJson(map['billing_details']),
    usBankAccount: map['us_bank_account'] == null
        ? null
        : OutboundTransfersPaymentMethodDetailsUsBankAccount.fromJson(
            map['us_bank_account']),
  );
}