validateResponse function

dynamic validateResponse(
  1. Response response
)

Implementation

validateResponse(http.Response response) {
  if (response.statusCode < 200 || response.statusCode >= 300) {
    throw ApillonApiError(response.body);
  }
  return true;
}