File: /var/www/quadcode.com/node_modules/pipedrive/dist/model/GetLeadLabelsResponse200.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _LeadLabelResponse = _interopRequireDefault(require("./LeadLabelResponse"));
/**
* Pipedrive API v1
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
/**
* The GetLeadLabelsResponse200 model module.
* @module model/GetLeadLabelsResponse200
* @version 1.0.0
*/
var GetLeadLabelsResponse200 = /*#__PURE__*/function () {
/**
* Constructs a new <code>GetLeadLabelsResponse200</code>.
* @alias module:model/GetLeadLabelsResponse200
*/
function GetLeadLabelsResponse200() {
(0, _classCallCheck2["default"])(this, GetLeadLabelsResponse200);
GetLeadLabelsResponse200.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
(0, _createClass2["default"])(GetLeadLabelsResponse200, null, [{
key: "initialize",
value: function initialize(obj) {}
/**
* Constructs a <code>GetLeadLabelsResponse200</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:model/GetLeadLabelsResponse200} obj Optional instance to populate.
* @return {module:model/GetLeadLabelsResponse200} The populated <code>GetLeadLabelsResponse200</code> instance.
*/
}, {
key: "constructFromObject",
value: function constructFromObject(data, obj) {
if (data) {
obj = obj || new GetLeadLabelsResponse200();
if (data.hasOwnProperty('success')) {
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
delete data['success'];
}
if (data.hasOwnProperty('data')) {
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_LeadLabelResponse["default"]]);
delete data['data'];
}
if (Object.keys(data).length > 0) {
Object.assign(obj, data);
}
}
return obj;
}
}]);
return GetLeadLabelsResponse200;
}();
/**
* @member {Boolean} success
*/
GetLeadLabelsResponse200.prototype['success'] = undefined;
/**
* @member {Array.<module:model/LeadLabelResponse>} data
*/
GetLeadLabelsResponse200.prototype['data'] = undefined;
var _default = GetLeadLabelsResponse200;
exports["default"] = _default;