docs: public static UserDto fromUser(User user, boolean isIncludeCredentials) {
      UserDto userDto = new UserDto();
      userDto.setProfile(UserProfileDto.fromUser(user));
      if(isIncludeCredentials) {
        userDto.setCredentials(UserCredentialsDto.fromUser(user));
      }
      return userDto;
    }