@Override
        public Node toNode() {
            return Node.objectNodeBuilder()
                    .withOptionalMember("path", getPath().map(NodePointer::toString).map(Node::from))
                    .withOptionalMember("severity", getSeverity().map(Severity::toNode))
                    .withMember("change", change.toNode())
                    .withOptionalMember("message", getMessage().map(Node::from))
                    .build();
        }
Represents an individual trait diff rule to define backward compatibility rules.
smithy-model/src/main/java/software/amazon/smithy/model/traits/TraitDefinition.java