forked from loafle/openapi-generator-original
remove SWGApiResponse.m (not used) (#7478)
This commit is contained in:
parent
2157d526e1
commit
04b39cc86b
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user