toDetailedAlgorithmStatus method

DetailedAlgorithmStatus toDetailedAlgorithmStatus()

Implementation

DetailedAlgorithmStatus toDetailedAlgorithmStatus() {
  switch (this) {
    case 'NotStarted':
      return DetailedAlgorithmStatus.notStarted;
    case 'InProgress':
      return DetailedAlgorithmStatus.inProgress;
    case 'Completed':
      return DetailedAlgorithmStatus.completed;
    case 'Failed':
      return DetailedAlgorithmStatus.failed;
  }
  throw Exception('$this is not known in enum DetailedAlgorithmStatus');
}