decodeFromByteArray

abstract fun <T> decodeFromByteArray(deserializer: DeserializationStrategy<T>, bytes: ByteArray): T(source)

Decodes and deserializes the given byte array to the value of type T using the given deserializer.

Throws

in case of any decoding-specific error

if the decoded input is not a valid instance of T