encode<V> static method

V encode<V>(
  1. PaymentMethodDetailsSepaCreditTransfer instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  PaymentMethodDetailsSepaCreditTransfer instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.bankName != null) {
    container.encodeString(
      'bank_name',
      instance.bankName!,
    );
  }
  if (instance.bic != null) {
    container.encodeString(
      'bic',
      instance.bic!,
    );
  }
  if (instance.iban != null) {
    container.encodeString(
      'iban',
      instance.iban!,
    );
  }
  return container.value;
}