/*
 * Selling Partner API for Catalog Items
 * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog.  For more information, refer to the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2022-04-01-use-case-guide).
 *
 * OpenAPI spec version: 2022-04-01
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 *
 * Swagger Codegen version: 2.4.9
 *
 * Do not edit the class manually.
 *
 */

import { ApiClient } from "../ApiClient.js";

/**
 * The ItemVariationTheme model module.
 * @module catalogItems_2022-04-01/js-client.catalogItems_2022-04-01.model/ItemVariationTheme
 * @version 2022-04-01
 */
export class ItemVariationTheme {
  /**
   * Constructs a new <code>ItemVariationTheme</code>.
   * Variation theme indicating the combination of Amazon item catalog attributes that define the variation family.
   * @alias module:catalogItems_2022-04-01/js-client.catalogItems_2022-04-01.model/ItemVariationTheme
   * @class
   */
  constructor() {}

  /**
   * Constructs a <code>ItemVariationTheme</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:catalogItems_2022-04-01/js-client.catalogItems_2022-04-01.model/ItemVariationTheme} obj Optional instance to populate.
   * @return {module:catalogItems_2022-04-01/js-client.catalogItems_2022-04-01.model/ItemVariationTheme} The populated <code>ItemVariationTheme</code> instance.
   */
  static constructFromObject(data, obj) {
    if (data) {
      obj = obj || new ItemVariationTheme();
      if (data.hasOwnProperty("attributes"))
        obj.attributes = ApiClient.convertToType(data["attributes"], [
          "String",
        ]);
      if (data.hasOwnProperty("theme"))
        obj.theme = ApiClient.convertToType(data["theme"], "String");
    }
    return obj;
  }
}

/**
 * Names of the Amazon catalog item attributes associated with the variation theme.
 * @member {Array.<String>} attributes
 */
ItemVariationTheme.prototype.attributes = undefined;

/**
 * Variation theme indicating the combination of Amazon item catalog attributes that define the variation family.
 * @member {String} theme
 */
ItemVariationTheme.prototype.theme = undefined;
