encode<V> static method

Implementation

static V encode<V>(
  CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer
      instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.senderBank != null) {
    container.encodeString(
      'sender_bank',
      instance.senderBank!,
    );
  }
  if (instance.senderBranch != null) {
    container.encodeString(
      'sender_branch',
      instance.senderBranch!,
    );
  }
  if (instance.senderName != null) {
    container.encodeString(
      'sender_name',
      instance.senderName!,
    );
  }
  return container.value;
}