forked from loafle/openapi-generator-original
52 lines
1.1 KiB
Objective-C
52 lines
1.1 KiB
Objective-C
#import "SWGInlineResponse200.h"
|
|
|
|
@implementation SWGInlineResponse200
|
|
|
|
- (instancetype)init {
|
|
self = [super init];
|
|
|
|
if (self) {
|
|
// initalise 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] initWithDictionary:@{ @"tags": @"tags", @"id": @"_id", @"category": @"category", @"status": @"status", @"name": @"name", @"photoUrls": @"photoUrls" }];
|
|
}
|
|
|
|
/**
|
|
* 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 = @[@"tags", @"category", @"status", @"name", @"photoUrls"];
|
|
|
|
if ([optionalProperties containsObject:propertyName]) {
|
|
return YES;
|
|
}
|
|
else {
|
|
return NO;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Gets the string presentation of the object.
|
|
* This method will be called when logging model object using `NSLog`.
|
|
*/
|
|
- (NSString *)description {
|
|
return [[self toDictionary] description];
|
|
}
|
|
|
|
@end
|