deserializeList

fun <T> deserializeList(body: ResponseBody, elementType: Type): List<T>?

Deserializes a list of entities using the first serializer that supports the body's content type.

Return

The deserialized response body as a list of entities. null if the body could not be deserialized.

Parameters

body

The response body to deserialize into a list of entities.

elementType

The type of the individual entities.

Type Parameters

T

The type of the individual entities.