ServiceResult.onParsingFailure constructor

ServiceResult.onParsingFailure(
  1. int httpCode,
  2. Map<String, String> headers,
  3. String body,
  4. Exception exception,
)

Implementation

factory ServiceResult.onParsingFailure(int httpCode,
    Map<String, String> headers, String body, Exception exception) {
  return ServiceResult._(
      httpCode: httpCode,
      headers: headers,
      result: ServiceExecutionResult.parsing_failure,
      entity: body,
      exception: exception);
}