Skip to content

james1010/parseDictToModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parseDictToModel

parse dict to model(NSString,or int\NSarray\BOOL...) 22

Demo Code:

NSDictionary *_personDict = @{@"name":@"james",@"age":@"32",@"clothes":@[@"clothes1",@"clothes2",@"clothes3"]};

PersonModel *aModel = [[PersonModel alloc] init];
aModel.name = [aModel parseStringFromDict:_personDict forKey:@"name"];



NSLog(@"Dict%@ \n aModel name:%@",_personDict,aModel.name);

About

parse dict to model(NSString,or int\NSarray\BOOL...)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published