toModelPackageSortBy method

ModelPackageSortBy toModelPackageSortBy()

Implementation

ModelPackageSortBy toModelPackageSortBy() {
  switch (this) {
    case 'Name':
      return ModelPackageSortBy.name;
    case 'CreationTime':
      return ModelPackageSortBy.creationTime;
  }
  throw Exception('$this is not known in enum ModelPackageSortBy');
}