toFindingStatisticType method

FindingStatisticType toFindingStatisticType()

Implementation

FindingStatisticType toFindingStatisticType() {
  switch (this) {
    case 'COUNT_BY_SEVERITY':
      return FindingStatisticType.countBySeverity;
  }
  throw Exception('$this is not known in enum FindingStatisticType');
}