toSortTrialComponentsBy method

SortTrialComponentsBy toSortTrialComponentsBy()

Implementation

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