encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodEps instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.bank != null) {
    PaymentMethodDetailsEpsBank.encode(
      instance.bank!,
      container.nestedSingleValueContainer('bank').encoder,
    );
  }
  return container.value;
}