Map and serialize any hash to / from object