/**
 * Pipedrive API v1
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * 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 ItemSearchAdditionalDataPagination from './ItemSearchAdditionalDataPagination';

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

            if (data.hasOwnProperty('pagination')) {
                obj['pagination'] = ItemSearchAdditionalDataPagination.constructFromObject(data['pagination']);

                delete data['pagination'];
            }

            if (Object.keys(data).length > 0) {
                Object.assign(obj, data);
            }

        }
        return obj;
    }


}

/**
 * @member {module:model/ItemSearchAdditionalDataPagination} pagination
 */
ItemSearchAdditionalData.prototype['pagination'] = undefined;






export default ItemSearchAdditionalData;

