serializing all properties for the map