Map<K, List<T>> toMapOfListOfValues() => map((key, l) => MapEntry(key, l.map((node) => node.value).toList()));