toExecutionResult method

ExecutionResult toExecutionResult()

Implementation

ExecutionResult toExecutionResult() {
  switch (this) {
    case 'PENDING':
      return ExecutionResult.pending;
    case 'PASSED':
      return ExecutionResult.passed;
    case 'WARNED':
      return ExecutionResult.warned;
    case 'FAILED':
      return ExecutionResult.failed;
    case 'SKIPPED':
      return ExecutionResult.skipped;
    case 'ERRORED':
      return ExecutionResult.errored;
    case 'STOPPED':
      return ExecutionResult.stopped;
  }
  throw Exception('$this is not known in enum ExecutionResult');
}