@Override
    public int hashCode() {
        return getType().hashCode() * 7 + nodeMap.hashCode();
    }
Creates a collector that creates an ObjectNode.

@param keyMapper Key mapping function that returns a string.
@param valueMapper Value mapping function that returns a ToNode.
@param <T> Type being collected over (e.g., Map.Entry, Pair, etc.).
@return Returns the created collector.
smithy-model/src/main/java/software/amazon/smithy/model/node/ObjectNode.java