parseResponse

inline fun <T> parseResponse(data: ByteArray?): T?

Deserializes data from JSON into type T, or returns null on failure.

Return

The deserialized object, or null if data is null or parsing fails.

Parameters

data

Raw JSON bytes from a network response.