deserialize

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

Deserializes an entity.

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.