encode<V> static method

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

Implementation

static V encode<V>(
  PlanUpTo instance,
  Encoder<V> encoder,
) {
  return encoder.encodePrimitive(instance);
}