code: public static Map<String, SessionLogs> getSessionLogs(Map<String, Object> rawSessionMap) {
      Map<String, SessionLogs> sessionLogsMap = new HashMap<>();
      for (Map.Entry<String, Object> entry : rawSessionMap.entrySet()) {
        String sessionId = entry.getKey();
        if (!(entry.getValue() instanceof Map)) {
          throw new InvalidArgumentException("Expected value to be an object: " + entry.getValue());
        }
        @SuppressWarnings("unchecked")
        Map<String, Object> value = (Map<String, Object>) entry.getValue();
        SessionLogs sessionLogs = SessionLogs.fromJSON(value);
        sessionLogsMap.put(sessionId, sessionLogs);
      }
      return sessionLogsMap;
    }
docs: Creates a session logs map, with session logs mapped to session IDs, given
  a raw session log map as a JSON object.
  
  @param rawSessionMap The raw session map.
  @return The session logs mapped to session IDs.