toRuleState method

RuleState toRuleState()

Implementation

RuleState toRuleState() {
  switch (this) {
    case 'ENABLED':
      return RuleState.enabled;
    case 'DISABLED':
      return RuleState.disabled;
  }
  throw Exception('$this is not known in enum RuleState');
}