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