toThreatIntelSetFormat method
Implementation
ThreatIntelSetFormat toThreatIntelSetFormat() {
switch (this) {
case 'TXT':
return ThreatIntelSetFormat.txt;
case 'STIX':
return ThreatIntelSetFormat.stix;
case 'OTX_CSV':
return ThreatIntelSetFormat.otxCsv;
case 'ALIEN_VAULT':
return ThreatIntelSetFormat.alienVault;
case 'PROOF_POINT':
return ThreatIntelSetFormat.proofPoint;
case 'FIRE_EYE':
return ThreatIntelSetFormat.fireEye;
}
throw Exception('$this is not known in enum ThreatIntelSetFormat');
}