EnumSerializer

class EnumSerializer<T : Enum<T>>(type: KClass<T>) : Serializer<T>

Constructors

Link copied to clipboard
constructor(type: KClass<T>)

Functions

Link copied to clipboard
open override fun deserialize(value: Any?): T

Deserializes the value from its configuration format back to type T.

Link copied to clipboard
open override fun serialize(value: T): Any

Serializes the value of type T to a format suitable for the configuration.