encode<V> static method

Implementation

static V encode<V>(
  CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer
      instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.bic != null) {
    container.encodeString(
      'bic',
      instance.bic!,
    );
  }
  if (instance.ibanLast4 != null) {
    container.encodeString(
      'iban_last4',
      instance.ibanLast4!,
    );
  }
  if (instance.senderName != null) {
    container.encodeString(
      'sender_name',
      instance.senderName!,
    );
  }
  return container.value;
}