toClusterState method
Implementation
ClusterState toClusterState() {
switch (this) {
case 'ACTIVE':
return ClusterState.active;
case 'CREATING':
return ClusterState.creating;
case 'DELETING':
return ClusterState.deleting;
case 'FAILED':
return ClusterState.failed;
case 'HEALING':
return ClusterState.healing;
case 'MAINTENANCE':
return ClusterState.maintenance;
case 'REBOOTING_BROKER':
return ClusterState.rebootingBroker;
case 'UPDATING':
return ClusterState.updating;
}
throw Exception('$this is not known in enum ClusterState');
}