Add fixes for es6 generator (#180)

Various fixes for JS (ES6) generator
This commit is contained in:
delenius
2018-06-16 10:59:23 -07:00
committed by William Cheng
parent 53d9878cf2
commit c607ea8b31
194 changed files with 8532 additions and 5008 deletions

View File

@@ -11,52 +11,43 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The Model200Response model module.
* @module model/Model200Response
* @version 1.0.0
*/
export default class Model200Response {
* The Model200Response model module.
* @module model/Model200Response
* @version 1.0.0
*/
class Model200Response {
/**
* Constructs a new <code>Model200Response</code>.
* Model for testing model name starting with number
* @alias module:model/Model200Response
* @class
*/
constructor() {
* Constructs a new <code>Model200Response</code>.
* Model for testing model name starting with number
* @alias module:model/Model200Response
*/
constructor() {
Model200Response.initialize(this);
}
/**
* Constructs a <code>Model200Response</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Model200Response} obj Optional instance to populate.
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>Model200Response</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Model200Response} obj Optional instance to populate.
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Model200Response();
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
}
@@ -67,22 +58,23 @@ export default class Model200Response {
return obj;
}
/**
* @member {Number} name
*/
name = undefined;
/**
* @member {String} class
*/
class = undefined;
}
/**
* @member {Number} name
*/
Model200Response.prototype['name'] = undefined;
/**
* @member {String} class
*/
Model200Response.prototype['class'] = undefined;
export default Model200Response;