public static Partitions fromNode(Node node) {
        Builder builder = new Builder(node);
        ObjectNode objNode = node.expectObjectNode();
        objNode.expectNoAdditionalProperties(PROPERTIES);

        objNode.getStringMember(VERSION, builder::version);
        objNode.getArrayMember(PARTITIONS,
                partitionsNode -> partitionsNode
                        .forEach(partNode -> builder.addPartition(Partition.fromNode(partNode))));

        return builder.build();
    }
Creates a {@link Partitions} instance from the given Node information.

@param node the node to deserialize.
@return the created Partitions.
smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/language/functions/partition/Partitions.java