encodeSerializableValue

open fun <T> encodeSerializableValue(serializer: SerializationStrategy<T>, value: T)(source)

Encodes the value of type T by delegating the encoding process to the given serializer. For example, encodeInt call is equivalent to delegating integer encoding to Int.Companion.serializer: encodeSerializableValue(Int.serializer())