HashMap to Map