class RoleInfo {

    private String id;
    private String name;

    public static RoleInfo of(Dimension dimension) {<FILL_FUNCTION_BODY>}
}

        RoleInfo detail = new RoleInfo();
        detail.setId(dimension.getId());
        detail.setName(dimension.getName());
        return detail;
    
<no_super_class>