toSortKeyType method

SortKeyType toSortKeyType()

Implementation

SortKeyType toSortKeyType() {
  switch (this) {
    case 'SERVICE_NAMESPACE_ASCENDING':
      return SortKeyType.serviceNamespaceAscending;
    case 'SERVICE_NAMESPACE_DESCENDING':
      return SortKeyType.serviceNamespaceDescending;
    case 'LAST_AUTHENTICATED_TIME_ASCENDING':
      return SortKeyType.lastAuthenticatedTimeAscending;
    case 'LAST_AUTHENTICATED_TIME_DESCENDING':
      return SortKeyType.lastAuthenticatedTimeDescending;
  }
  throw Exception('$this is not known in enum SortKeyType');
}