toConfidenceLevel method

ConfidenceLevel toConfidenceLevel()

Implementation

ConfidenceLevel toConfidenceLevel() {
  switch (this) {
    case 'LOW':
      return ConfidenceLevel.low;
    case 'MEDIUM':
      return ConfidenceLevel.medium;
    case 'HIGH':
      return ConfidenceLevel.high;
  }
  throw Exception('$this is not known in enum ConfidenceLevel');
}