public boolean hasMember(String key) {
            if (nodeMap.hasValue()) {
                for (StringNode k : nodeMap.peek().keySet()) {
                    if (key.equals(k.getValue())) {
                        return true;
                    }
                }
            }
            return false;
        }
Builder used to efficiently create an ObjectNode.
smithy-model/src/main/java/software/amazon/smithy/model/node/ObjectNode.java