MJExtention

 

+ (NSDictionary *)mj_objectClassInArray

{

    // key : 属性名

    // value : 类名

    return @{

             @"dogs" : @"Dog",

             @"books" : @"Book"

             };

}

 

+ (NSDictionary *)mj_replacedKeyFromPropertyName

{

    // 属性名-字典key-映射

    // key : 属性名

    // value : 字典中的key

    return @{

             @"desc" : @"description",

             @"ID" : @"id",

             @"name" : @[@"name", @"screenname"],

             @"info" : @[@"other.info[1].abc",

                         @"other.info[0].test",

                         @"name"]

             };

}

 

posted @ 2015-06-03 16:54  Emyin  阅读(177)  评论(0编辑  收藏  举报