toCelebrityRecognitionSortBy method

CelebrityRecognitionSortBy toCelebrityRecognitionSortBy()

Implementation

CelebrityRecognitionSortBy toCelebrityRecognitionSortBy() {
  switch (this) {
    case 'ID':
      return CelebrityRecognitionSortBy.id;
    case 'TIMESTAMP':
      return CelebrityRecognitionSortBy.timestamp;
  }
  throw Exception('$this is not known in enum CelebrityRecognitionSortBy');
}