no message

This commit is contained in:
Giuseppe Nucifora 2016-05-03 17:39:03 +02:00
parent 560aa24515
commit 5a768fcda5

View File

@ -207,6 +207,10 @@ NSString * const PNObjectMappingSelector = @"selector";
NSString *mappedJSONKey;
NSString *mappedJSONType;
if (self.JSON && [[self.JSON allKeys] count] == 0) {
self.JSON = [[NSMutableDictionary alloc] initWithDictionary:[self reverseMapping]];
}
NSDictionary *properties = [PNObject propertiesForClass:self.class];
for (NSString* propertyName in self.JSONObjectMap) {