toStepExecutionState method

StepExecutionState toStepExecutionState()

Implementation

StepExecutionState toStepExecutionState() {
  switch (this) {
    case 'PENDING':
      return StepExecutionState.pending;
    case 'RUNNING':
      return StepExecutionState.running;
    case 'CONTINUE':
      return StepExecutionState.$continue;
    case 'COMPLETED':
      return StepExecutionState.completed;
    case 'CANCELLED':
      return StepExecutionState.cancelled;
    case 'FAILED':
      return StepExecutionState.failed;
    case 'INTERRUPTED':
      return StepExecutionState.interrupted;
  }
  throw Exception('$this is not known in enum StepExecutionState');
}