deserializeErrorBody

inline fun <T, E> ApiResponse<T>.deserializeErrorBody(json: Json = Json): E?

Author

skydoves (Jaewoong Eum)

Since

1.2.7

Deserializes the Json string from error body of the ApiResponse.Failure.Error to the E custom type. It returns null if the error body is empty.

Parameters

json

Json instance that could be configured as needed.