toClusterState method

ClusterState toClusterState()

Implementation

ClusterState toClusterState() {
  switch (this) {
    case 'CREATE_IN_PROGRESS':
      return ClusterState.createInProgress;
    case 'UNINITIALIZED':
      return ClusterState.uninitialized;
    case 'INITIALIZE_IN_PROGRESS':
      return ClusterState.initializeInProgress;
    case 'INITIALIZED':
      return ClusterState.initialized;
    case 'ACTIVE':
      return ClusterState.active;
    case 'UPDATE_IN_PROGRESS':
      return ClusterState.updateInProgress;
    case 'DELETE_IN_PROGRESS':
      return ClusterState.deleteInProgress;
    case 'DELETED':
      return ClusterState.deleted;
    case 'DEGRADED':
      return ClusterState.degraded;
  }
  throw Exception('$this is not known in enum ClusterState');
}