@Override
        public Node serialize(ToNode value, Set<Object> serializedObjects, NodeMapper mapper) {
            // Handle cases where the toNode method is disabled for a specific type.
            // This allows other serializers to attempt to serialize the value.
            if (mapper.getDisableToNode().contains(value.getClass())) {
                return null;
            }

            // TODO: make sure every instance of `toNode` is setting this
            return value.toNode();
        }
The default implementations use to convert Objects to Node values in {@link NodeMapper}.
smithy-model/src/main/java/software/amazon/smithy/model/node/DefaultNodeSerializers.java