docs: public static AttributeValue toAttributeValue(Object value) {
          AttributeValue result = new AttributeValue();
          if (value == null) {
              return result.withNULL(Boolean.TRUE);
          } else if (value instanceof Boolean) {
              return result.withBOOL((Boolean)value);
          } else if (value instanceof String) {
              return result.withS((String) value);
          } else if (value instanceof BigDecimal) {
              BigDecimal bd = (BigDecimal) value;
              return result.withN(bd.toPlainString());
          } else if (value instanceof Number) {
              return result.withN(value.toString());
          } else if (value instanceof byte[]) {
              return result.withB(ByteBuffer.wrap((byte[]) value));
          } else if (value instanceof ByteBuffer) {
              return result.withB((ByteBuffer) value);
          }