toTargetWorkspaceState method

TargetWorkspaceState toTargetWorkspaceState()

Implementation

TargetWorkspaceState toTargetWorkspaceState() {
  switch (this) {
    case 'AVAILABLE':
      return TargetWorkspaceState.available;
    case 'ADMIN_MAINTENANCE':
      return TargetWorkspaceState.adminMaintenance;
  }
  throw Exception('$this is not known in enum TargetWorkspaceState');
}