YYModel
model里
@interface ThreeModel : NSObject
@property(nonatomic,strong)NSString *address;
@property(nonatomic,strong)NSString *city;
@property(nonatomic,strong)NSString *detail;
@property(nonatomic,strong)NSString *title;
@end
@interface TwoModel : NSObject
@property(nonatomic,strong)NSArray *list;
@end
@interface Model : NSObject
@property(nonatomic,strong)NSString *reason;
@property(nonatomic,strong)TwoModel *result;
@end
实现里面
@implementation ThreeModel
@end
@implementation TwoModel
// 返回容器类中的所需要存放的数据类型 (以 Class 或 Class Name 的形式)。
+ (NSDictionary *)modelContainerPropertyGenericClass {
return @{@"list" : [ThreeModel class]};
}
@end
@implementation Model
// 返回容器类中的所需要存放的数据类型 (以 Class 或 Class Name 的形式)。
+ (NSDictionary *)modelContainerPropertyGenericClass {
return @{@"result" : [TwoModel class]};
}
@end