Visitar URL original
Custom model class for every element. by qdvictory · Pull Request #616 · jsonmodel/jsonmodel · GitHub
Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add lost [
  • Loading branch information
qdvictory committed Mar 1, 2018
commit 2b3c7d5b716a97d1fec762ed930a7bf15dbd8f84
2 changes: 1 addition & 1 deletion JSONModel/JSONModel/JSONModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ -(id)__transform:(id)value forProperty:(JSONModelClassProperty*)property error:(

for (NSString* key in [value allKeys]) {
JSONModelError* initErr = nil;
id obj = [[[protocolClass class] classForModel:value[key]] alloc] initWithDictionary:value[key] error:&initErr];
id obj = [[[[protocolClass class] classForModel:value[key]] alloc] initWithDictionary:value[key] error:&initErr];
if (obj == nil)
{
// Propagate the error, including the property name as the key-path component
Expand Down