toModelSortKey method

ModelSortKey toModelSortKey()

Implementation

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