@Override
    public Node toNode() {
        ObjectNode.Builder builder = ObjectNode.builder();
        for (Map.Entry<Identifier, Value> valueEntry : value.entrySet()) {
            builder.withMember(valueEntry.getKey().getName(), valueEntry.getValue());
        }
        return builder.build();
    }
Gets the value in the record for the provided key.

@param key the key to retrieve a value for.
@return the value for the provided key, or null if the key is not present.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/evaluation/value/RecordValue.java