toComparisonOperator method

ComparisonOperator toComparisonOperator()

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;
  }
  throw Exception('$this is not known in enum ComparisonOperator');
}