pub fn deserialize_response(
response: &HttpResponse,
) -> Result<ClientResponse, SDKError>Expand description
Deserializes an HTTP response into a ClientResponse or an SDKError.
ยงErrors
Returns SDKError::Api if the HTTP response status is not successful,
or if the JSON response body fails to deserialize properly.