ServiceResult.onSuccess constructor

ServiceResult.onSuccess(
  1. int httpCode,
  2. Map<String, String> headers,
  3. dynamic entity
)

Implementation

factory ServiceResult.onSuccess(
    int httpCode, Map<String, String> headers, var entity) {
  return ServiceResult._(
      httpCode: httpCode,
      headers: headers,
      result: ServiceExecutionResult.success,
      entity: entity);
}