@Override
            public Type visitRecord(Map<Identifier, Literal> members) {
                Map<Identifier, Type> types = new LinkedHashMap<>();
                for (Map.Entry<Identifier, Literal> entry : members.entrySet()) {
                    types.put(entry.getKey(), entry.getValue().typeCheck(scope));
                }
                return Type.recordType(types);
            }
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