Source: models/CustomerAddressLink.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/**
 * Shop API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 20.4
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 *
 */


import ApiClient from '../ApiClient'





/**
* The CustomerAddressLink model module.
* @module models/CustomerAddressLink
* @version 20.4
*/
export default class CustomerAddressLink {
    /**
    * Constructs a new <code>CustomerAddressLink</code>.
    * * Result document of product list addresses.
    * @alias module:models/CustomerAddressLink
    * @class
    */

    constructor() {








    }

    /**
    * Constructs a <code>CustomerAddressLink</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:models/CustomerAddressLink} obj Optional instance to populate.
    * @return {module:models/CustomerAddressLink} The populated <code>CustomerAddressLink</code> instance.
    */
    static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new CustomerAddressLink()





            if (data.hasOwnProperty('address_id')) {
                obj.address_id = ApiClient.convertToType(data.address_id, 'String')
            }
            if (data.hasOwnProperty('link')) {
                obj.link = ApiClient.convertToType(data.link, 'String')
            }
            if (data.hasOwnProperty('title')) {
                obj.title = ApiClient.convertToType(data.title, 'String')
            }
        }
        return obj
    }

    /**
    * The id of the address.
    * @member {String} address_id
    */
    address_id = undefined;
    /**
    * The target of the link.
    * @member {String} link
    */
    link = undefined;
    /**
    * The link title.
    * @member {String} title
    */
    title = undefined;








}