Refactored model/BrowseNodeChild.

This commit is contained in:
David Ball 2024-07-17 21:02:56 -04:00
parent fd3200940b
commit 1968bd544e
2 changed files with 28 additions and 58 deletions

View File

@ -23,6 +23,7 @@
import { ApiClient } from "./ApiClient"; import { ApiClient } from "./ApiClient";
import { Availability } from "./model/Availability"; import { Availability } from "./model/Availability";
import { BrowseNodeChild } from "./model/BrowseNodeChild";
import { ByLineInfo } from "./model/ByLineInfo"; import { ByLineInfo } from "./model/ByLineInfo";
import { Classifications } from "./model/Classifications"; import { Classifications } from "./model/Classifications";
import { Condition } from "./model/Condition"; import { Condition } from "./model/Condition";
@ -89,7 +90,7 @@ export {
* The BrowseNodeChild model constructor. * The BrowseNodeChild model constructor.
* @property {module:model/BrowseNodeChild} * @property {module:model/BrowseNodeChild}
*/ */
BrowseNodeChild: BrowseNodeChild, BrowseNodeChild,
/** /**
* The BrowseNodeInfo model constructor. * The BrowseNodeInfo model constructor.
* @property {module:model/BrowseNodeInfo} * @property {module:model/BrowseNodeInfo}

View File

@ -21,44 +21,32 @@
* *
*/ */
(function(root, factory) { /**
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.BrowseNodeChild = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The BrowseNodeChild model module. * The BrowseNodeChild model module.
* @module model/BrowseNodeChild * @module model/BrowseNodeChild
* @version 1.0.0 * @version 1.0.0
*/ */
/** import { ApiClient } from "../ApiClient";
/**
* Constructs a new <code>BrowseNodeChild</code>. * Constructs a new <code>BrowseNodeChild</code>.
* @alias module:model/BrowseNodeChild * @alias module:model/BrowseNodeChild
* @class * @class
*/ */
var exports = function() { export class BrowseNodeChild {
var _this = this; /**
* @member {String} ContextFreeName
*/
public ContextFreeName?: string;
/**
}; * @member {String} DisplayName
*/
public DisplayName?: string;
/**
* @member {String} Id
*/
public Id?: string;
/** /**
* Constructs a <code>BrowseNodeChild</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>BrowseNodeChild</code> from a plain JavaScript object, optionally creating a new instance.
@ -67,39 +55,20 @@
* @param {module:model/BrowseNodeChild} obj Optional instance to populate. * @param {module:model/BrowseNodeChild} obj Optional instance to populate.
* @return {module:model/BrowseNodeChild} The populated <code>BrowseNodeChild</code> instance. * @return {module:model/BrowseNodeChild} The populated <code>BrowseNodeChild</code> instance.
*/ */
exports.constructFromObject = function(data, obj) { public constructFromObject(data: any, obj?: BrowseNodeChild) {
if (data) { if (data) {
obj = obj || new exports(); obj = obj || new BrowseNodeChild();
if (data.hasOwnProperty('ContextFreeName')) { if (data.hasOwnProperty('ContextFreeName')) {
obj['ContextFreeName'] = ApiClient.convertToType(data['ContextFreeName'], 'String'); obj.ContextFreeName = ApiClient.convertToType(data['ContextFreeName'], 'String');
} }
if (data.hasOwnProperty('DisplayName')) { if (data.hasOwnProperty('DisplayName')) {
obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String'); obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String');
} }
if (data.hasOwnProperty('Id')) { if (data.hasOwnProperty('Id')) {
obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); obj.Id = ApiClient.convertToType(data['Id'], 'String');
} }
} }
return obj; return obj;
} }
};
/**
* @member {String} ContextFreeName
*/
exports.prototype['ContextFreeName'] = undefined;
/**
* @member {String} DisplayName
*/
exports.prototype['DisplayName'] = undefined;
/**
* @member {String} Id
*/
exports.prototype['Id'] = undefined;
return exports;
}));