toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ComparisonOperator.eq:
      return 'EQ';
    case ComparisonOperator.ne:
      return 'NE';
    case ComparisonOperator.$in:
      return 'IN';
    case ComparisonOperator.le:
      return 'LE';
    case ComparisonOperator.lt:
      return 'LT';
    case ComparisonOperator.ge:
      return 'GE';
    case ComparisonOperator.gt:
      return 'GT';
    case ComparisonOperator.between:
      return 'BETWEEN';
    case ComparisonOperator.notNull:
      return 'NOT_NULL';
    case ComparisonOperator.$null:
      return 'NULL';
    case ComparisonOperator.contains:
      return 'CONTAINS';
    case ComparisonOperator.notContains:
      return 'NOT_CONTAINS';
    case ComparisonOperator.beginsWith:
      return 'BEGINS_WITH';
  }
}