BitStruct<K> withMap(Map<K, int> map) => bitData.withEach(map.entries.map((e) => (e.key.bitmask, e.value))) as BitStruct<K>;