toDetailedModelPackageStatus method

DetailedModelPackageStatus toDetailedModelPackageStatus()

Implementation

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