@interface Entity () @property (assign) int searchTotalPagesAll; @property (assign) int searchTotalPagesIdeas; @end @implementation Entity + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ @"Id": @"entity.id_entity", @"name": @"entity.name", @"coverage" : @"entity.coverage", @"id_city": @"entity.Id_City", @"cityName":@"entity.city", @"countryName":@"entity.country", @"stateName":@"entity.district", @"countryCode": @"entity.countrycode", @"keyword1": @"entity.key1", ... etc
Since mantle examples do not have an init method, where should I initialize these properties (searchTotalPagesAll, searchTotalPagesIdeas) for default values? This model has internal methods that need this and a number of other properties.
source share