deserialize
This function is used to deserialize the JSON response body into an object of type T
. The function is inline and reified, which means it can safely use the generic type T
at runtime.
Return
An object of type T
that represents the deserialized JSON response body.
Throws
Serialization Exception
If the given JSON string cannot be deserialized into an object of type T
.