@Override
        public Node toNode() {
            ObjectNode.Builder builder = Node.objectNodeBuilder()
                    .withMember("title", Node.from(title))
                    .withOptionalMember("documentation", getDocumentation().map(Node::from))
                    .withOptionalMember("error", getError().map(ErrorExample::toNode));

            if (!input.isEmpty()) {
                builder.withMember("input", input);
            }
            if (this.getOutput().isPresent()) {
                builder.withMember("output", output);
            }

            if (this.allowConstraintErrors) {
                builder.withMember("allowConstraintErrors", BooleanNode.from(allowConstraintErrors));
            }

            return builder.build();
        }
@return Returns true if input constraints errors are allowed.
smithy-model/src/main/java/software/amazon/smithy/model/traits/ExamplesTrait.java