code: 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;
  
  }
docs: Used to get all the user details in a dictionary format
  @memberof User
  @returns {dictionary} dictionary