I wrote a small library that automates this, it also handles date conversion https://github.com/aryaxt/OCMapper
It automatically converts NSDictionary to NSObject if all keys match property names.
Customer *customer = [Customer objectFromDictionary:customerDictionary]; NSArray *customers = [Customer objectFromDictionary:listOfCustomersDictionary];
If the names of the keys and properties do not match, you can write a mapping
[mappingProvider mapFromDictionaryKey:@"dob" toPropertyKey:@"dateOfBearth" forClass:[Customer class]];
source share