toRuleOperator method
Implementation
RuleOperator toRuleOperator() {
switch (this) {
case 'EQUALS':
return RuleOperator.equals;
case 'LESS_THAN':
return RuleOperator.lessThan;
case 'LESS_THAN_OR_EQUALS':
return RuleOperator.lessThanOrEquals;
case 'GREATER_THAN':
return RuleOperator.greaterThan;
case 'GREATER_THAN_OR_EQUALS':
return RuleOperator.greaterThanOrEquals;
case 'IN':
return RuleOperator.$in;
case 'NOT_IN':
return RuleOperator.notIn;
case 'CONTAINS':
return RuleOperator.contains;
}
throw Exception('$this is not known in enum RuleOperator');
}