deserialize

fun <T> deserialize(body: ResponseBody, type: Class<T>): T?

Deserializes an entity using the first serializer that supports the body's content type.

Return

The deserialized response body as an entity. null if the body could not be deserialized.

Parameters

body

The request body to deserialize into an entity.

type

The type of entity to deserialize.

T

The type of entity to deserialize.