getObject

fun getObject(candidateIndex: Int = 0): T?(source)

Deserialize a candidate (default first) and convert it into the type associated with this response.

Parameters

candidateIndex

which candidate to deserialize

Throws

if class is not @Serializable

if an error occurs during deserialization