Use Map.collectEntries to transform properties