class RoleGroupDetailTree {

    private String groupId;
    private String groupName;
    private List<RoleEntity> roles;


    public static RoleGroupDetailTree of(RoleGroupEntity group) {<FILL_FUNCTION_BODY>}


}

        RoleGroupDetailTree roleGroupDetailTree = new RoleGroupDetailTree();
        roleGroupDetailTree.setGroupId(group.getId());
        roleGroupDetailTree.setGroupName(group.getName());
        return roleGroupDetailTree;
    
<no_super_class>