mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-23 01:00:52 +00:00
32 lines
514 B
Objective-C
32 lines
514 B
Objective-C
#import "SWGDate.h"
|
|
#import "SWGExampleUsage.h"
|
|
|
|
@implementation SWGExampleUsage
|
|
|
|
-(id)text: (NSString*) text
|
|
{
|
|
_text = text;
|
|
return self;
|
|
}
|
|
|
|
-(id) initWithValues:(NSDictionary*)dict
|
|
{
|
|
self = [super init];
|
|
if(self) {
|
|
_text = dict[@"text"];
|
|
|
|
|
|
}
|
|
return self;
|
|
}
|
|
|
|
-(NSDictionary*) asDictionary {
|
|
NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
|
|
if(_text != nil) dict[@"text"] = _text ;
|
|
NSDictionary* output = [dict copy];
|
|
return output;
|
|
}
|
|
|
|
@end
|
|
|