encode<V> static method

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

Implementation

static V encode<V>(
  SessionLabel instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'custom',
    instance.custom,
  );
  container.encodeString(
    'type',
    'custom',
  );
  return container.value;
}