toDirectoryState method

DirectoryState toDirectoryState()

Implementation

DirectoryState toDirectoryState() {
  switch (this) {
    case 'ENABLED':
      return DirectoryState.enabled;
    case 'DISABLED':
      return DirectoryState.disabled;
    case 'DELETED':
      return DirectoryState.deleted;
  }
  throw Exception('$this is not known in enum DirectoryState');
}