Source: models/Image.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 Image model module.
* @module models/Image
* @version 20.4
*/
export default class Image {
    /**
    * Constructs a new <code>Image</code>.
    * @alias module:models/Image
    * @class
    * @param link {String}
    */

    constructor(link) {





        this.link = link


    }

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





            if (data.hasOwnProperty('alt')) {
                obj.alt = ApiClient.convertToType(data.alt, 'String')
            }
            if (data.hasOwnProperty('dis_base_link')) {
                obj.dis_base_link = ApiClient.convertToType(data.dis_base_link, '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
    }

    /**
    * @member {String} alt
    */
    alt = undefined;
    /**
    * @member {String} dis_base_link
    */
    dis_base_link = undefined;
    /**
    * @member {String} link
    */
    link = undefined;
    /**
    * @member {String} title
    */
    title = undefined;








}