encode<V> static method

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

Implementation

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