toPredicateType method
Implementation
PredicateType toPredicateType() {
switch (this) {
case 'IPMatch':
return PredicateType.iPMatch;
case 'ByteMatch':
return PredicateType.byteMatch;
case 'SqlInjectionMatch':
return PredicateType.sqlInjectionMatch;
case 'GeoMatch':
return PredicateType.geoMatch;
case 'SizeConstraint':
return PredicateType.sizeConstraint;
case 'XssMatch':
return PredicateType.xssMatch;
case 'RegexMatch':
return PredicateType.regexMatch;
}
throw Exception('$this is not known in enum PredicateType');
}