toWorkspaceDirectoryState method

WorkspaceDirectoryState toWorkspaceDirectoryState()

Implementation

WorkspaceDirectoryState toWorkspaceDirectoryState() {
  switch (this) {
    case 'REGISTERING':
      return WorkspaceDirectoryState.registering;
    case 'REGISTERED':
      return WorkspaceDirectoryState.registered;
    case 'DEREGISTERING':
      return WorkspaceDirectoryState.deregistering;
    case 'DEREGISTERED':
      return WorkspaceDirectoryState.deregistered;
    case 'ERROR':
      return WorkspaceDirectoryState.error;
  }
  throw Exception('$this is not known in enum WorkspaceDirectoryState');
}