code: public Condition asCondition() {
          Condition condition = new Condition().withComparisonOperator(operator.getComparisonOperator());
          int argumentCount = operator.getArgumentCount();
  
          if (argumentCount == 1) {
              condition.withAttributeValueList(ConversionUtil.toAttributeValue(values[0]));
          } else if (argumentCount == 2) {
              condition.withAttributeValueList(ConversionUtil.toAttributeValue(values[0]), ConversionUtil.toAttributeValue(values[1]));
          } else if (argumentCount != 0) {    // N arguments
              condition.setAttributeValueList(ConversionUtil.toAttributeValueList(values[0]));
          }
  
          return condition;
      }
docs: -------------------------------------------------------------