toAttackPropertyIdentifier method
Implementation
AttackPropertyIdentifier toAttackPropertyIdentifier() {
switch (this) {
case 'DESTINATION_URL':
return AttackPropertyIdentifier.destinationUrl;
case 'REFERRER':
return AttackPropertyIdentifier.referrer;
case 'SOURCE_ASN':
return AttackPropertyIdentifier.sourceAsn;
case 'SOURCE_COUNTRY':
return AttackPropertyIdentifier.sourceCountry;
case 'SOURCE_IP_ADDRESS':
return AttackPropertyIdentifier.sourceIpAddress;
case 'SOURCE_USER_AGENT':
return AttackPropertyIdentifier.sourceUserAgent;
case 'WORDPRESS_PINGBACK_REFLECTOR':
return AttackPropertyIdentifier.wordpressPingbackReflector;
case 'WORDPRESS_PINGBACK_SOURCE':
return AttackPropertyIdentifier.wordpressPingbackSource;
}
throw Exception('$this is not known in enum AttackPropertyIdentifier');
}