serialize

open override fun serialize(encoder: Encoder, value: T)

Serializes a concrete NavKey implementation.

It writes the object's fully qualified class name (type) first, then uses the object's runtime serializer to write the object's data (value).