toThreatIntelIndicatorCategory method

ThreatIntelIndicatorCategory toThreatIntelIndicatorCategory()

Implementation

ThreatIntelIndicatorCategory toThreatIntelIndicatorCategory() {
  switch (this) {
    case 'BACKDOOR':
      return ThreatIntelIndicatorCategory.backdoor;
    case 'CARD_STEALER':
      return ThreatIntelIndicatorCategory.cardStealer;
    case 'COMMAND_AND_CONTROL':
      return ThreatIntelIndicatorCategory.commandAndControl;
    case 'DROP_SITE':
      return ThreatIntelIndicatorCategory.dropSite;
    case 'EXPLOIT_SITE':
      return ThreatIntelIndicatorCategory.exploitSite;
    case 'KEYLOGGER':
      return ThreatIntelIndicatorCategory.keylogger;
  }
  throw Exception('$this is not known in enum ThreatIntelIndicatorCategory');
}