encodeSerializableValue
open fun <T> encodeSerializableValue(serializer: SerializationStrategy<T>, value: T)
Content copied to clipboard
Encodes the value of type T by delegating the encoding process to the given serializer. For example, encodeInt
call us equivalent to delegating integer encoding to Int.serializer: encodeSerializableValue(Int.serializer())