toClusterState method

ClusterState toClusterState()

Implementation

ClusterState toClusterState() {
  switch (this) {
    case 'AwaitingQuorum':
      return ClusterState.awaitingQuorum;
    case 'Pending':
      return ClusterState.pending;
    case 'InUse':
      return ClusterState.inUse;
    case 'Complete':
      return ClusterState.complete;
    case 'Cancelled':
      return ClusterState.cancelled;
  }
  throw Exception('$this is not known in enum ClusterState');
}