Files
openapi-generator/samples/client/petstore/javascript-promise-es6/src/model/InlineObject.js
William Cheng d49de5b577 [JS] mark ES5 as deprecated (#6408)
* mark js es5 deprecated, remove samples, migrate samples to use oas3

* update test in pom.xml

* update js samples

* delete js es5 samples

* update js petstore

* remove openapi3 js petstore

* fix tests

* skip test/model/AdditionalPropertiesArray.spec.js

* fix test

* update doc
2020-05-26 09:55:00 +08:00

82 lines
2.1 KiB
JavaScript

/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The InlineObject model module.
* @module model/InlineObject
* @version 1.0.0
*/
class InlineObject {
/**
* Constructs a new <code>InlineObject</code>.
* @alias module:model/InlineObject
*/
constructor() {
InlineObject.initialize(this);
}
/**
* 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>InlineObject</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/InlineObject} obj Optional instance to populate.
* @return {module:model/InlineObject} The populated <code>InlineObject</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject();
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('status')) {
obj['status'] = ApiClient.convertToType(data['status'], 'String');
}
}
return obj;
}
}
/**
* Updated name of the pet
* @member {String} name
*/
InlineObject.prototype['name'] = undefined;
/**
* Updated status of the pet
* @member {String} status
*/
InlineObject.prototype['status'] = undefined;
export default InlineObject;