@Override
            public Literal objectNode(ObjectNode objectNode) {
                Map<Identifier, Literal> members = new LinkedHashMap<>();
                for (Map.Entry<String, Node> entry : objectNode.getStringMap().entrySet()) {
                    members.put(Identifier.of(entry.getKey()), entry.getValue().accept(this));
                }
                return new RecordLiteral(members, objectNode);
            }
Constructs a literal from a {@link Node} based on the Node's type.

@param node a node to construct as a literal.
@return the literal representation of the node.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/expressions/literal/Literal.java