toTaskStatus method

TaskStatus toTaskStatus()

Implementation

TaskStatus toTaskStatus() {
  switch (this) {
    case 'scheduled':
      return TaskStatus.scheduled;
    case 'inProgress':
      return TaskStatus.inProgress;
    case 'completed':
      return TaskStatus.completed;
    case 'failed':
      return TaskStatus.failed;
  }
  throw Exception('$this is not known in enum TaskStatus');
}