@Override
    public Node toNode() {
        ObjectNode.Builder conditionNode = function.toNode().expectObjectNode().toBuilder();
        if (result != null) {
            conditionNode.withMember(ASSIGN, result.getName());
        }
        return conditionNode.build();
    }
Gets the function used to express this condition.

@return the function for this condition.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/rule/Condition.java