/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* 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'
import Image from './Image'
import VariationAttribute from './VariationAttribute'
/**
* The ImageGroup model module.
* @module models/ImageGroup
* @version 20.4
*/
export default class ImageGroup {
/**
* Constructs a new <code>ImageGroup</code>.
* Document representing an image group containing a list of images for a particular view type and an optional variation value.
* @alias module:models/ImageGroup
* @class
*/
constructor() {
}
/**
* Constructs a <code>ImageGroup</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/ImageGroup} obj Optional instance to populate.
* @return {module:models/ImageGroup} The populated <code>ImageGroup</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ImageGroup()
if (data.hasOwnProperty('images')) {
obj.images = ApiClient.convertToType(data.images, [Image])
}
if (data.hasOwnProperty('variation_attributes')) {
obj.variation_attributes = ApiClient.convertToType(data.variation_attributes, [VariationAttribute])
}
if (data.hasOwnProperty('view_type')) {
obj.view_type = ApiClient.convertToType(data.view_type, 'String')
}
}
return obj
}
/**
* The images of the image group.
* @member {Array.<module:models/Image>} images
*/
images = undefined;
/**
* Returns a list of variation attributes applying to this image group.
* @member {Array.<module:models/VariationAttribute>} variation_attributes
*/
variation_attributes = undefined;
/**
* The image view type.
* @member {String} view_type
*/
view_type = undefined;
}