toRuleType method
Implementation
RuleType toRuleType() {
switch (this) {
case 'BINARY_LENGTH':
return RuleType.binaryLength;
case 'NUMBER_COMPARISON':
return RuleType.numberComparison;
case 'STRING_FROM_SET':
return RuleType.stringFromSet;
case 'STRING_LENGTH':
return RuleType.stringLength;
}
throw Exception('$this is not known in enum RuleType');
}