toStepStatus method

StepStatus toStepStatus()

Implementation

StepStatus toStepStatus() {
  switch (this) {
    case 'Starting':
      return StepStatus.starting;
    case 'Executing':
      return StepStatus.executing;
    case 'Stopping':
      return StepStatus.stopping;
    case 'Stopped':
      return StepStatus.stopped;
    case 'Failed':
      return StepStatus.failed;
    case 'Succeeded':
      return StepStatus.succeeded;
  }
  throw Exception('$this is not known in enum StepStatus');
}