toAttackLayer method
Implementation
AttackLayer toAttackLayer() {
switch (this) {
case 'NETWORK':
return AttackLayer.network;
case 'APPLICATION':
return AttackLayer.application;
}
throw Exception('$this is not known in enum AttackLayer');
}