public <T extends ToNode> Builder withOptionalMember(String key, Optional<T> value) {
            return value.map(val -> withMember(key, val.toNode())).orElse(this);
        }
Builder used to efficiently create an ObjectNode.
smithy-model/src/main/java/software/amazon/smithy/model/node/ObjectNode.java