private static void collectDuoSecurityUserAccountAttribute(final JSONObject userJson,
                                                               final String attribute,
                                                               final DuoSecurityUserAccount user) {
        FunctionUtils.doIfNotNull(userJson.opt(attribute), value -> user.addAttribute(attribute, value.toString()));
    }
This is {@link DefaultDuoSecurityAdminApiService}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/DefaultDuoSecurityAdminApiService.java