encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodDetailsP24 instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.bank != null) {
    container.encodeString(
      'bank',
      instance.bank!,
    );
  }
  if (instance.reference != null) {
    container.encodeString(
      'reference',
      instance.reference!,
    );
  }
  if (instance.verifiedName != null) {
    container.encodeString(
      'verified_name',
      instance.verifiedName!,
    );
  }
  return container.value;
}