toNotEmptyMapOrNull

@SinceKotools(project = Project.Types, version = "3.1")
fun <K, V> Map<K, V>.toNotEmptyMapOrNull(): NotEmptyMap<K, V>?

Returns a NotEmptyMap containing all the entries of this map, or returns null if this map is empty.