toClusterStatus method

ClusterStatus toClusterStatus()

Implementation

ClusterStatus toClusterStatus() {
  switch (this) {
    case 'CREATING':
      return ClusterStatus.creating;
    case 'ACTIVE':
      return ClusterStatus.active;
    case 'DELETING':
      return ClusterStatus.deleting;
    case 'FAILED':
      return ClusterStatus.failed;
    case 'UPDATING':
      return ClusterStatus.updating;
  }
  throw Exception('$this is not known in enum ClusterStatus');
}