@Override
    public Node toNode() {
        StringBuilder builder = new StringBuilder();
        for (Part part : parts) {
            if (part instanceof Literal) {
                builder.append(((Literal) part).value);
            } else if (part instanceof Dynamic) {
                builder.append('{').append(((Dynamic) part).raw).append('}');
            }
        }
        return Node.from(builder.toString());
    }
Evaluates this template in the provided scope.

@param scope the scope to check this template within.
@return the type of the template.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/expressions/Template.java