static fromPairs<K, V>(Iterable<Pair<K, V>> pairs) { final map = <K, V>{}; for (final pair in pairs) { map[pair.first] = pair.second; } return map; }