Infer object name from 'name' property