Serializer

interface Serializer<T : Any>

Interface for serializing and deserializing values of type T.

Implementations of this interface define how to convert between Kotlin objects and their representations in configuration files.

Parameters

T

the type of the object being serialized

Inheritors

Types

Link copied to clipboard
object Companion

Functions

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

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

Link copied to clipboard
abstract fun serialize(value: T): Any?

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