code: private Map<String, Conversation> makeMapFromDownloadedConversations(List<Conversation> list) {
  
          Map<String, Conversation> map = new HashMap<>();
  
          if (list != null && !list.isEmpty()) {
              for (Conversation details : list) {
                  map.put(details.getId(), details);
              }
          }
  
          return map;
      }
docs: Creates map of conversations based on conversationId for internal purpose.
  
  @param list List of conversations.
  @return Map of conversations.