encode<V> static method

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

Implementation

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