toRuleTypeOption method

RuleTypeOption toRuleTypeOption()

Implementation

RuleTypeOption toRuleTypeOption() {
  switch (this) {
    case 'FORWARD':
      return RuleTypeOption.forward;
    case 'SYSTEM':
      return RuleTypeOption.system;
    case 'RECURSIVE':
      return RuleTypeOption.recursive;
  }
  throw Exception('$this is not known in enum RuleTypeOption');
}