/**
 * 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: \" \\
 *
 * OpenAPI spec version: 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 AdditionalPropertiesClass model module.
 * @module model/AdditionalPropertiesClass
 * @version 1.0.0
 */
class AdditionalPropertiesClass {
    /**
     * Constructs a new <code>AdditionalPropertiesClass</code>.
     * @alias module:model/AdditionalPropertiesClass
     */
    constructor() { 
        
        AdditionalPropertiesClass.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>AdditionalPropertiesClass</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/AdditionalPropertiesClass} obj Optional instance to populate.
     * @return {module:model/AdditionalPropertiesClass} The populated <code>AdditionalPropertiesClass</code> instance.
     */
    static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new AdditionalPropertiesClass();

            if (data.hasOwnProperty('map_string')) {
                obj['map_string'] = ApiClient.convertToType(data['map_string'], {'String': 'String'});
            }
            if (data.hasOwnProperty('map_number')) {
                obj['map_number'] = ApiClient.convertToType(data['map_number'], {'String': 'Number'});
            }
            if (data.hasOwnProperty('map_integer')) {
                obj['map_integer'] = ApiClient.convertToType(data['map_integer'], {'String': 'Number'});
            }
            if (data.hasOwnProperty('map_boolean')) {
                obj['map_boolean'] = ApiClient.convertToType(data['map_boolean'], {'String': 'Boolean'});
            }
            if (data.hasOwnProperty('map_array_integer')) {
                obj['map_array_integer'] = ApiClient.convertToType(data['map_array_integer'], {'String': ['Number']});
            }
            if (data.hasOwnProperty('map_array_anytype')) {
                obj['map_array_anytype'] = ApiClient.convertToType(data['map_array_anytype'], {'String': [Object]});
            }
            if (data.hasOwnProperty('map_map_string')) {
                obj['map_map_string'] = ApiClient.convertToType(data['map_map_string'], {'String': {'String': 'String'}});
            }
            if (data.hasOwnProperty('map_map_anytype')) {
                obj['map_map_anytype'] = ApiClient.convertToType(data['map_map_anytype'], {'String': {'String': Object}});
            }
            if (data.hasOwnProperty('anytype_1')) {
                obj['anytype_1'] = ApiClient.convertToType(data['anytype_1'], Object);
            }
            if (data.hasOwnProperty('anytype_2')) {
                obj['anytype_2'] = ApiClient.convertToType(data['anytype_2'], Object);
            }
            if (data.hasOwnProperty('anytype_3')) {
                obj['anytype_3'] = ApiClient.convertToType(data['anytype_3'], Object);
            }
        }
        return obj;
    }


}

/**
 * @member {Object.<String, String>} map_string
 */
AdditionalPropertiesClass.prototype['map_string'] = undefined;

/**
 * @member {Object.<String, Number>} map_number
 */
AdditionalPropertiesClass.prototype['map_number'] = undefined;

/**
 * @member {Object.<String, Number>} map_integer
 */
AdditionalPropertiesClass.prototype['map_integer'] = undefined;

/**
 * @member {Object.<String, Boolean>} map_boolean
 */
AdditionalPropertiesClass.prototype['map_boolean'] = undefined;

/**
 * @member {Object.<String, Array.<Number>>} map_array_integer
 */
AdditionalPropertiesClass.prototype['map_array_integer'] = undefined;

/**
 * @member {Object.<String, Array.<Object>>} map_array_anytype
 */
AdditionalPropertiesClass.prototype['map_array_anytype'] = undefined;

/**
 * @member {Object.<String, Object.<String, String>>} map_map_string
 */
AdditionalPropertiesClass.prototype['map_map_string'] = undefined;

/**
 * @member {Object.<String, Object.<String, Object>>} map_map_anytype
 */
AdditionalPropertiesClass.prototype['map_map_anytype'] = undefined;

/**
 * @member {Object} anytype_1
 */
AdditionalPropertiesClass.prototype['anytype_1'] = undefined;

/**
 * @member {Object} anytype_2
 */
AdditionalPropertiesClass.prototype['anytype_2'] = undefined;

/**
 * @member {Object} anytype_3
 */
AdditionalPropertiesClass.prototype['anytype_3'] = undefined;






export default AdditionalPropertiesClass;

