toFindingPublishingFrequency method

FindingPublishingFrequency toFindingPublishingFrequency()

Implementation

FindingPublishingFrequency toFindingPublishingFrequency() {
  switch (this) {
    case 'FIFTEEN_MINUTES':
      return FindingPublishingFrequency.fifteenMinutes;
    case 'ONE_HOUR':
      return FindingPublishingFrequency.oneHour;
    case 'SIX_HOURS':
      return FindingPublishingFrequency.sixHours;
  }
  throw Exception('$this is not known in enum FindingPublishingFrequency');
}