/** * 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'; import ReadOnlyFirst from './ReadOnlyFirst'; /** * The ArrayTest model module. * @module model/ArrayTest * @version 1.0.0 */ class ArrayTest { /** * Constructs a new ArrayTest. * @alias module:model/ArrayTest */ constructor() { ArrayTest.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 ArrayTest from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/ArrayTest} obj Optional instance to populate. * @return {module:model/ArrayTest} The populated ArrayTest instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new ArrayTest(); if (data.hasOwnProperty('array_of_string')) { obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']); } if (data.hasOwnProperty('array_array_of_integer')) { obj['array_array_of_integer'] = ApiClient.convertToType(data['array_array_of_integer'], [['Number']]); } if (data.hasOwnProperty('array_array_of_model')) { obj['array_array_of_model'] = ApiClient.convertToType(data['array_array_of_model'], [[ReadOnlyFirst]]); } } return obj; } } /** * @member {Array.} array_of_string */ ArrayTest.prototype['array_of_string'] = undefined; /** * @member {Array.>} array_array_of_integer */ ArrayTest.prototype['array_array_of_integer'] = undefined; /** * @member {Array.>} array_array_of_model */ ArrayTest.prototype['array_array_of_model'] = undefined; export default ArrayTest;