deduplicatePostsMap static method
Deduplicates a Map<String, Post>
Implementation
static Map<String, Post> deduplicatePostsMap(Map<String, Post> postsMap, {int timeThresholdMs = 120000}) {
final dedupedList = deduplicatePosts(postsMap.values, timeThresholdMs: timeThresholdMs);
return {for (var p in dedupedList) p.id: p};
}