diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponse.m b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponse.m deleted file mode 100644 index cfa8aa1eb20..00000000000 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponse.m +++ /dev/null @@ -1,34 +0,0 @@ -#import "SWGApiResponse.h" - -@implementation SWGApiResponse - -- (instancetype)init { - self = [super init]; - if (self) { - // initialize property's default value, if any - - } - return self; -} - - -/** - * Maps json key to property name. - * This method is used by `JSONModel`. - */ -+ (JSONKeyMapper *)keyMapper { - return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:@{ @"code": @"code", @"type": @"type", @"message": @"message" }]; -} - -/** - * Indicates whether the property with the given name is optional. - * If `propertyName` is optional, then return `YES`, otherwise return `NO`. - * This method is used by `JSONModel`. - */ -+ (BOOL)propertyIsOptional:(NSString *)propertyName { - - NSArray *optionalProperties = @[@"code", @"type", @"message"]; - return [optionalProperties containsObject:propertyName]; -} - -@end diff --git a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGApiResponse.m b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGApiResponse.m deleted file mode 100644 index cfa8aa1eb20..00000000000 --- a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGApiResponse.m +++ /dev/null @@ -1,34 +0,0 @@ -#import "SWGApiResponse.h" - -@implementation SWGApiResponse - -- (instancetype)init { - self = [super init]; - if (self) { - // initialize property's default value, if any - - } - return self; -} - - -/** - * Maps json key to property name. - * This method is used by `JSONModel`. - */ -+ (JSONKeyMapper *)keyMapper { - return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:@{ @"code": @"code", @"type": @"type", @"message": @"message" }]; -} - -/** - * Indicates whether the property with the given name is optional. - * If `propertyName` is optional, then return `YES`, otherwise return `NO`. - * This method is used by `JSONModel`. - */ -+ (BOOL)propertyIsOptional:(NSString *)propertyName { - - NSArray *optionalProperties = @[@"code", @"type", @"message"]; - return [optionalProperties containsObject:propertyName]; -} - -@end