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 { Availability } from "./model/Availability";
import { BrowseNodeChild } from "./model/BrowseNodeChild";
import { ByLineInfo } from "./model/ByLineInfo";
import { Classifications } from "./model/Classifications";
import { Condition } from "./model/Condition";
@ -89,7 +90,7 @@ export {
* The BrowseNodeChild model constructor.
* @property {module:model/BrowseNodeChild}
*/
BrowseNodeChild: BrowseNodeChild,
BrowseNodeChild,
/**
* The BrowseNodeInfo model constructor.
* @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.
* @module model/BrowseNodeChild
* @version 1.0.0
*/
import { ApiClient } from "../ApiClient";
/**
* Constructs a new <code>BrowseNodeChild</code>.
* @alias module:model/BrowseNodeChild
* @class
*/
export class BrowseNodeChild {
/**
* The BrowseNodeChild model module.
* @module model/BrowseNodeChild
* @version 1.0.0
* @member {String} ContextFreeName
*/
public ContextFreeName?: string;
/**
* Constructs a new <code>BrowseNodeChild</code>.
* @alias module:model/BrowseNodeChild
* @class
* @member {String} DisplayName
*/
var exports = function() {
var _this = this;
};
public DisplayName?: string;
/**
* @member {String} Id
*/
public Id?: string;
/**
* 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.
* @return {module:model/BrowseNodeChild} The populated <code>BrowseNodeChild</code> instance.
*/
exports.constructFromObject = function(data, obj) {
public constructFromObject(data: any, obj?: BrowseNodeChild) {
if (data) {
obj = obj || new exports();
obj = obj || new BrowseNodeChild();
if (data.hasOwnProperty('ContextFreeName')) {
obj['ContextFreeName'] = ApiClient.convertToType(data['ContextFreeName'], 'String');
obj.ContextFreeName = ApiClient.convertToType(data['ContextFreeName'], 'String');
}
if (data.hasOwnProperty('DisplayName')) {
obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String');
}
if (data.hasOwnProperty('Id')) {
obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
obj.Id = ApiClient.convertToType(data['Id'], 'String');
}
}
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;
}));
};