decoded

@ExperimentalSerializationApi
inline suspend fun <T> Response.decoded(json: Json = lenientJson): T

Decodes the information in the response from the JSON representation.

Parameters

json

(optional) JSON serialization configuration


@ExperimentalSerializationApi
suspend fun <T> Response.decoded(serializer: KSerializer<T>, json: Json = lenientJson): T

Decodes the information in the response from the JSON representation.

Parameters

serializer

serializer from kotlinx-serialization

json

(optional) JSON serialization configuration