toWorkflowRunStatus method

WorkflowRunStatus toWorkflowRunStatus()

Implementation

WorkflowRunStatus toWorkflowRunStatus() {
  switch (this) {
    case 'RUNNING':
      return WorkflowRunStatus.running;
    case 'COMPLETED':
      return WorkflowRunStatus.completed;
    case 'STOPPING':
      return WorkflowRunStatus.stopping;
    case 'STOPPED':
      return WorkflowRunStatus.stopped;
    case 'ERROR':
      return WorkflowRunStatus.error;
  }
  throw Exception('$this is not known in enum WorkflowRunStatus');
}