I have two classes with the same name. I am having conflicts because of that. I cannot rename because JSON Model is using that name and other reason over 100 classes are importing it .
Can they be combined? Or a Solution for JSONModel?
Class 1
#import "User.h"
@implementation User
+(User*)createWithDictionary:(NSDictionary*)dictionary inContext:(NSManagedObjectContext*)context{
//Censored
}
+(User*)createWithDictionary:(NSDictionary*)dictionary{
//Censored
}
-(void)updateWithDictionary:(NSDictionary*)dictionary{
//Censored
}
-(NSString*)classOfProperty:(NSString*)propName{
//Censored
}
@end
Class 2
@implementation User
+(JSONKeyMapper*)keyMapper {
return [[JSONKeyMapper alloc] initWithDictionary:@{@"id": @"identifier",
@"first": @"firstName",
@"last": @"lastName",
}];