toOperator method
Implementation
Operator toOperator() {
switch (this) {
case 'Equals':
return Operator.equals;
case 'NotEquals':
return Operator.notEquals;
case 'In':
return Operator.$in;
case 'LessThanOrEqual':
return Operator.lessThanOrEqual;
case 'LessThan':
return Operator.lessThan;
case 'GreaterThanOrEqual':
return Operator.greaterThanOrEqual;
case 'GreaterThan':
return Operator.greaterThan;
case 'Contains':
return Operator.contains;
case 'NotContains':
return Operator.notContains;
case 'BeginsWith':
return Operator.beginsWith;
}
throw Exception('$this is not known in enum Operator');
}