toNotebookExecutionStatus method

NotebookExecutionStatus toNotebookExecutionStatus()

Implementation

NotebookExecutionStatus toNotebookExecutionStatus() {
  switch (this) {
    case 'START_PENDING':
      return NotebookExecutionStatus.startPending;
    case 'STARTING':
      return NotebookExecutionStatus.starting;
    case 'RUNNING':
      return NotebookExecutionStatus.running;
    case 'FINISHING':
      return NotebookExecutionStatus.finishing;
    case 'FINISHED':
      return NotebookExecutionStatus.finished;
    case 'FAILING':
      return NotebookExecutionStatus.failing;
    case 'FAILED':
      return NotebookExecutionStatus.failed;
    case 'STOP_PENDING':
      return NotebookExecutionStatus.stopPending;
    case 'STOPPING':
      return NotebookExecutionStatus.stopping;
    case 'STOPPED':
      return NotebookExecutionStatus.stopped;
  }
  throw Exception('$this is not known in enum NotebookExecutionStatus');
}