resolve property

ApiResponse<BodyType, InnerType> get resolve

Implementation

ApiResponse<BodyType, InnerType> get resolve {
  // Log.i('running interceptors');
  var response = this;
  try {
    if (isSuccessful) {
      for (var e in request.interceptors) {
        response = e.onResponse(response);
      }
    } else {
      for (var e in request.interceptors) {
        response = e.onError(response);
      }
    }
  } catch (e) {
    // print(e);
  }
  return response;
}