We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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;
@EnD
@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;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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;
@EnD
@interface SectionTemplate : NSObject
@Property int sectionTemplateId;
@Property(strong) NSString *title;
@Property(strong) NSMutableArray *fieldTemplates;
@Property int sheetTemplateId;
@Property int rank;
@EnD
@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;
@EnD
The text was updated successfully, but these errors were encountered: