-
Notifications
You must be signed in to change notification settings - Fork 56
Description
How can I map FieldTemplate and ChildFieldTemplates?
I've tried this but fieldTemplate won't map:
NSDictionary *mapping = [NSDictionary dictionaryWithObjectsAndKeys:
[SheetTemplate mappingWithKey:@"" mapping:sheetTemplateMapping], @"",
[SectionTemplate mappingWithKey:@"SectionTemplates" mapping:sectionTemplateMapping], @"SectionTemplates",
[FieldTemplate mappingWithKey:@"fieldTemplates" mapping:fieldTemplateMapping], @"FieldTemplates",
nil];
My classes look like this:
@interface SheetTemplate : NSObject
@Property int SheetTemplateId;
@Property(strong) NSString *Title;
@Property int Version;
@Property(strong) NSMutableArray *SectionTemplates;
@interface SectionTemplate : NSObject
@Property int sectionTemplateId;
@Property(strong) NSString *title;
@Property(strong) NSMutableArray *fieldTemplates;
@Property int sheetTemplateId;
@Property int rank;
@interface FieldTemplate : NSObject
@Property int fieldTemplateId;
@Property(strong) NSString *label;
@Property int fieldType;
@Property int parentFieldTemplateId;
@Property(strong) NSMutableArray *childFieldTemplates;
@Property int sectionTemplateId;
@Property int rank;
