Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

ClassMapper

ClassMapper is a helper library that allows to convert Foundation representation directly to objects presentation using keypath.

Here a few example of usage:

// Suppose we have a jsonObject {"article":{"author":"Goue","title":"A fallen hero""}}
// And class Article with 2 defined properties:
//    NSString *author  
//    NSString *title    
ClassMapping *mapping = [ClassMapping mappingWithClass:[Article class]];
[mapping addAttributeMappingFromKeyPath:@"article.author" toObjectPath:@"author"];
[mapping addAttributeMappingFromKeyPath:@"article.title" toObjectPath:@"title"]

Article *goueArticle = [[mapping objects:jsonObject] objectAtIndex:0];

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages