@Override
    public Node toNode() {
        ArrayNode.Builder partitionsNodeBuilder = ArrayNode.builder();
        partitions.forEach(partitionsNodeBuilder::withValue);

        return Node.objectNodeBuilder()
                .withMember(VERSION, Node.from(version))
                .withMember(PARTITIONS, partitionsNodeBuilder.build())
                .build();
    }
Gets the list of loaded partitions.

@return returns the list of partitions.
smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/language/functions/partition/Partitions.java