toJobStatus method

JobStatus toJobStatus()

Implementation

JobStatus toJobStatus() {
  switch (this) {
    case 'Created':
      return JobStatus.created;
    case 'Queued':
      return JobStatus.queued;
    case 'Dispatched':
      return JobStatus.dispatched;
    case 'InProgress':
      return JobStatus.inProgress;
    case 'TimedOut':
      return JobStatus.timedOut;
    case 'Succeeded':
      return JobStatus.succeeded;
    case 'Failed':
      return JobStatus.failed;
  }
  throw Exception('$this is not known in enum JobStatus');
}