mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-24 17:50:53 +00:00
36 lines
633 B
Objective-C
36 lines
633 B
Objective-C
#import "SWGDate.h"
|
|
#import "SWGContentProvider.h"
|
|
|
|
@implementation SWGContentProvider
|
|
|
|
-(id)_id: (NSNumber*) _id
|
|
name: (NSString*) name
|
|
{
|
|
__id = _id;
|
|
_name = name;
|
|
return self;
|
|
}
|
|
|
|
-(id) initWithValues:(NSDictionary*)dict
|
|
{
|
|
self = [super init];
|
|
if(self) {
|
|
__id = dict[@"id"];
|
|
_name = dict[@"name"];
|
|
|
|
|
|
}
|
|
return self;
|
|
}
|
|
|
|
-(NSDictionary*) asDictionary {
|
|
NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
|
|
if(__id != nil) dict[@"id"] = __id ;
|
|
if(_name != nil) dict[@"name"] = _name ;
|
|
NSDictionary* output = [dict copy];
|
|
return output;
|
|
}
|
|
|
|
@end
|
|
|