toComparisonOperator method
Implementation
ComparisonOperator toComparisonOperator() {
switch (this) {
case 'EQ':
return ComparisonOperator.eq;
case 'NE':
return ComparisonOperator.ne;
case 'LE':
return ComparisonOperator.le;
case 'LT':
return ComparisonOperator.lt;
case 'GE':
return ComparisonOperator.ge;
case 'GT':
return ComparisonOperator.gt;
case 'CONTAINS':
return ComparisonOperator.contains;
case 'NOT_CONTAINS':
return ComparisonOperator.notContains;
case 'BEGINS_WITH':
return ComparisonOperator.beginsWith;
case 'IN':
return ComparisonOperator.$in;
case 'BETWEEN':
return ComparisonOperator.between;
}
throw Exception('$this is not known in enum ComparisonOperator');
}