public WireRule toWire() {
        WireRule wireRule = new WireRule();

        if (!andConditions.isEmpty()) {
            wireRule.andConditions = andConditions.stream().map(Condition::toWire).toList();
        }

        wireRule.value = valueToApply.map(RawFlag::asJsonNode).orElse(null);

        return wireRule;
    }
Returns a copy of this rule without those conditions that can be resolved by the fetch vector.  Returns empty
if any of those conditions are false.
flags/src/main/java/com/yahoo/vespa/flags/json/Rule.java