toComparisonOperator method

ComparisonOperator toComparisonOperator()

Implementation

ComparisonOperator toComparisonOperator() {
  switch (this) {
    case 'GREATER_THAN_OR_EQUAL':
      return ComparisonOperator.greaterThanOrEqual;
    case 'GREATER_THAN':
      return ComparisonOperator.greaterThan;
    case 'LESS_THAN':
      return ComparisonOperator.lessThan;
    case 'LESS_THAN_OR_EQUAL':
      return ComparisonOperator.lessThanOrEqual;
  }
  throw Exception('$this is not known in enum ComparisonOperator');
}