encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodAuBecsDebit instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.bsbNumber != null) {
    container.encodeString(
      'bsb_number',
      instance.bsbNumber!,
    );
  }
  if (instance.fingerprint != null) {
    container.encodeString(
      'fingerprint',
      instance.fingerprint!,
    );
  }
  if (instance.last4 != null) {
    container.encodeString(
      'last4',
      instance.last4!,
    );
  }
  return container.value;
}