decodeFromJsonElement

fun <T> decodeFromJsonElement(deserializer: DeserializationStrategy<T>, element: JsonElement): T

Deserializes the given element into a value of type T using the given deserializer.

Throws

if the given JSON string cannot be deserialized to the value of type T.