Refactored model/BrowseNodeChild.
This commit is contained in:
parent
fd3200940b
commit
1968bd544e
|
|
@ -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}
|
||||||
|
|
|
||||||
|
|
@ -21,44 +21,32 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The BrowseNodeChild model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/BrowseNodeChild
|
||||||
define(['ApiClient'], factory);
|
* @version 1.0.0
|
||||||
} 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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>BrowseNodeChild</code>.
|
||||||
|
* @alias module:model/BrowseNodeChild
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class BrowseNodeChild {
|
||||||
/**
|
/**
|
||||||
* The BrowseNodeChild model module.
|
* @member {String} ContextFreeName
|
||||||
* @module model/BrowseNodeChild
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public ContextFreeName?: string;
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>BrowseNodeChild</code>.
|
* @member {String} DisplayName
|
||||||
* @alias module:model/BrowseNodeChild
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public DisplayName?: string;
|
||||||
var _this = this;
|
/**
|
||||||
|
* @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;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user