toClusterState method

ClusterState toClusterState()

Implementation

ClusterState toClusterState() {
  switch (this) {
    case 'STARTING':
      return ClusterState.starting;
    case 'BOOTSTRAPPING':
      return ClusterState.bootstrapping;
    case 'RUNNING':
      return ClusterState.running;
    case 'WAITING':
      return ClusterState.waiting;
    case 'TERMINATING':
      return ClusterState.terminating;
    case 'TERMINATED':
      return ClusterState.terminated;
    case 'TERMINATED_WITH_ERRORS':
      return ClusterState.terminatedWithErrors;
  }
  throw Exception('$this is not known in enum ClusterState');
}