class ForcedRoot implements JsonObjectConvertible, Comparable<ForcedRoot> {

    @Override
    public JsonObject toJson() {
        final JsonKeys keys = keys();
        return obj().key(keys.path()).opt(this.path)
                .key(keys.primaryType()).opt(this.primaryType)
                .key(keys.mixinTypes()).opt(this.mixinTypes)
                .get();
    }

}