toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case LabelDetectionSortBy.name:
      return 'NAME';
    case LabelDetectionSortBy.timestamp:
      return 'TIMESTAMP';
  }
}