deserializeList
Deserializes a JSON:API collection response ({"data": [ … ]}) into List<T>.
Strips the "data" envelope automatically and passes the optional "included" array to the deserializer for each resource element.
val players: List<Player> = client.get("players").deserializeList(PlayerSerializer)Content copied to clipboard