toAnomalyDetectorStateValue method

AnomalyDetectorStateValue toAnomalyDetectorStateValue()

Implementation

AnomalyDetectorStateValue toAnomalyDetectorStateValue() {
  switch (this) {
    case 'PENDING_TRAINING':
      return AnomalyDetectorStateValue.pendingTraining;
    case 'TRAINED_INSUFFICIENT_DATA':
      return AnomalyDetectorStateValue.trainedInsufficientData;
    case 'TRAINED':
      return AnomalyDetectorStateValue.trained;
  }
  throw Exception('$this is not known in enum AnomalyDetectorStateValue');
}