Translate an object representation into another based on a map.