标签:
#import "JSONModel.h"
@protocol test2Model<NSObject>
@end
@interface test2Model : JSONModel
@property (nonatomic,strong)NSString<Optional> * qwrqwr;
@property (nonatomic,strong)NSString<Optional> * name;
@property (nonatomic,strong)NSString<Optional> * price;
@end
@interface test1Model : JSONModel
@property (nonatomic,strong)NSString<Optional> * order_id;
@property (nonatomic,strong)NSString<Optional> * total_price;
@property (nonatomic,strong)NSArray<test2Model,Optional> * product;
@end
#import "test1Model.h"
@implementation test2Model
+(JSONKeyMapper *)keyMapper{
return [[JSONKeyMapper alloc] initWithDictionary:@{@"id":@"qwrqwr"}];
}
@end
@implementation test1Model
@end
标签:
原文地址:http://www.cnblogs.com/liaods/p/4787573.html