InboundTransfers.fromJson constructor

InboundTransfers.fromJson(
  1. Object? json
)

Implementation

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