Implemented mapping of nested objects.