@Override
    public Node toNode() {
        ObjectNode.Builder builder = Node.objectNodeBuilder();
        builder.withMember("value", getValue())
                .withOptionalMember("name", getName().map(Node::from))
                .withOptionalMember("documentation", getDocumentation().map(Node::from));

        if (!tags.isEmpty()) {
            builder.withMember("tags", Node.fromStrings(getTags()));
        }

        if (isDeprecated()) {
            builder.withMember("deprecated", true);
        }

        return builder.build();
    }
An enum definition for the enum trait.
smithy-model/src/main/java/software/amazon/smithy/model/traits/EnumDefinition.java