toPipelineExecutionStatus method

PipelineExecutionStatus toPipelineExecutionStatus()

Implementation

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