toExecutionStatus method

ExecutionStatus toExecutionStatus()

Implementation

ExecutionStatus toExecutionStatus() {
  switch (this) {
    case 'Pending':
      return ExecutionStatus.pending;
    case 'Completed':
      return ExecutionStatus.completed;
    case 'CompletedWithViolations':
      return ExecutionStatus.completedWithViolations;
    case 'InProgress':
      return ExecutionStatus.inProgress;
    case 'Failed':
      return ExecutionStatus.failed;
    case 'Stopping':
      return ExecutionStatus.stopping;
    case 'Stopped':
      return ExecutionStatus.stopped;
  }
  throw Exception('$this is not known in enum ExecutionStatus');
}