encode<V> static method

Implementation

static V encode<V>(
  CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer
      instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.accountNumberLast4 != null) {
    container.encodeString(
      'account_number_last4',
      instance.accountNumberLast4!,
    );
  }
  if (instance.senderName != null) {
    container.encodeString(
      'sender_name',
      instance.senderName!,
    );
  }
  if (instance.sortCode != null) {
    container.encodeString(
      'sort_code',
      instance.sortCode!,
    );
  }
  return container.value;
}