buildSuccessResponseWithNoResults function

ParseResponse buildSuccessResponseWithNoResults(
  1. ParseResponse response,
  2. int code,
  3. String value
)

Handles successful responses with no results

Implementation

ParseResponse buildSuccessResponseWithNoResults(
    ParseResponse response, int code, String value) {
  response.success = true;
  response.statusCode = 200;
  response.error = ParseError(code: code, message: value);
  return response;
}