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
change root project not be parsed.
  • Loading branch information
qdvictory committed Mar 28, 2018
commit 0c926fdb5a888d9985a996e8e239acb6c49d6b7e
2 changes: 1 addition & 1 deletion JSONModel/JSONModel/JSONModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ -(BOOL)__importDictionary:(NSDictionary*)dict withKeyMapper:(JSONKeyMapper*)keyM

//initialize the property's model, store it
JSONModelError* initErr = nil;
id value = [[property.type alloc] initWithDictionary: jsonValue error:&initErr];
id value = [[property.type alloc] modelWithDictionary: jsonValue error:&initErr];

if (!value) {
//skip this property, continue with next property
Expand Down