toDocumentFilterKey method

DocumentFilterKey toDocumentFilterKey()

Implementation

DocumentFilterKey toDocumentFilterKey() {
  switch (this) {
    case 'Name':
      return DocumentFilterKey.name;
    case 'Owner':
      return DocumentFilterKey.owner;
    case 'PlatformTypes':
      return DocumentFilterKey.platformTypes;
    case 'DocumentType':
      return DocumentFilterKey.documentType;
  }
  throw Exception('$this is not known in enum DocumentFilterKey');
}