js/userData.js
function getUserDictionary(){
    
    const userDict = {};

    if (!userId){

        userDict['userId'] = deviceData.getDeviceId();

    } else {

        userDict['userId'] = userId;

    }

    for (let key in extraInfo){
        
        userDict[key] = extraInfo[key];
    
    }

    return userDict;

}
function getUserDictionary(){
    
    const userDict = {};

    if (!userId){

        userDict['userId'] = deviceData.getDeviceId();

    } else {

        userDict['userId'] = userId;

    }

    for (let key in extraInfo){
        
        userDict[key] = extraInfo[key];
    
    }

    return userDict;

}
function getUserDictionary ( ) { const userDict = { } ; if ( ! userId ) { userDict [ 'userId' ] = deviceData . getDeviceId ( ) ; } else { userDict [ 'userId' ] = userId ; } for ( let key in extraInfo ) { userDict [ key ] = extraInfo [ key ] ; } return userDict ; }
Used to get all the user details in a dictionary format
@memberof User
@returns {dictionary} dictionary
Used to get all the user details in a dictionary format