toLabelDetectionSortBy method

LabelDetectionSortBy toLabelDetectionSortBy()

Implementation

LabelDetectionSortBy toLabelDetectionSortBy() {
  switch (this) {
    case 'NAME':
      return LabelDetectionSortBy.name;
    case 'TIMESTAMP':
      return LabelDetectionSortBy.timestamp;
  }
  throw Exception('$this is not known in enum LabelDetectionSortBy');
}