toEndpointSortKey method

EndpointSortKey toEndpointSortKey()

Implementation

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