toMalwareType method
Implementation
MalwareType toMalwareType() {
switch (this) {
case 'ADWARE':
return MalwareType.adware;
case 'BLENDED_THREAT':
return MalwareType.blendedThreat;
case 'BOTNET_AGENT':
return MalwareType.botnetAgent;
case 'COIN_MINER':
return MalwareType.coinMiner;
case 'EXPLOIT_KIT':
return MalwareType.exploitKit;
case 'KEYLOGGER':
return MalwareType.keylogger;
case 'MACRO':
return MalwareType.macro;
case 'POTENTIALLY_UNWANTED':
return MalwareType.potentiallyUnwanted;
case 'SPYWARE':
return MalwareType.spyware;
case 'RANSOMWARE':
return MalwareType.ransomware;
case 'REMOTE_ACCESS':
return MalwareType.remoteAccess;
case 'ROOTKIT':
return MalwareType.rootkit;
case 'TROJAN':
return MalwareType.trojan;
case 'VIRUS':
return MalwareType.virus;
case 'WORM':
return MalwareType.worm;
}
throw Exception('$this is not known in enum MalwareType');
}