deserialize
Deserializes a JSON:API single-resource response ({"data": { … }}) into T.
Strips the "data" envelope automatically and passes the optional "included" array to the deserializer.
val player: Player = client.get("players/$id").deserialize(PlayerSerializer)Content copied to clipboard