toExecutionStatus method

ExecutionStatus toExecutionStatus()

Implementation

ExecutionStatus toExecutionStatus() {
  switch (this) {
    case 'RUNNING':
      return ExecutionStatus.running;
    case 'SUCCEEDED':
      return ExecutionStatus.succeeded;
    case 'FAILED':
      return ExecutionStatus.failed;
    case 'TIMED_OUT':
      return ExecutionStatus.timedOut;
    case 'ABORTED':
      return ExecutionStatus.aborted;
  }
  throw Exception('$this is not known in enum ExecutionStatus');
}