toAttackLayer method

AttackLayer toAttackLayer()

Implementation

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