UNPKG

infusionsoft-nodejs

Version:

A NodeJS SDK automatically generated from Infusionsoft API Swagger definitions.

110 lines (76 loc) 2.63 kB
/** * Infusionsoft REST API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: V1.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * */ import ApiClient from '../ApiClient'; import Appointment from './Appointment'; /** * The AppointmentList model module. * @module model/AppointmentList * @version V1.0 */ export default class AppointmentList { /** * Constructs a new <code>AppointmentList</code>. * @alias module:model/AppointmentList * @class */ constructor() { } /** * Constructs a <code>AppointmentList</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/AppointmentList} obj Optional instance to populate. * @return {module:model/AppointmentList} The populated <code>AppointmentList</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new AppointmentList(); if (data.hasOwnProperty('appointments')) { obj['appointments'] = ApiClient.convertToType(data['appointments'], [Appointment]); } if (data.hasOwnProperty('count')) { obj['count'] = ApiClient.convertToType(data['count'], 'Number'); } if (data.hasOwnProperty('next')) { obj['next'] = ApiClient.convertToType(data['next'], 'String'); } if (data.hasOwnProperty('previous')) { obj['previous'] = ApiClient.convertToType(data['previous'], 'String'); } if (data.hasOwnProperty('sync_token')) { obj['sync_token'] = ApiClient.convertToType(data['sync_token'], 'String'); } } return obj; } /** * @member {Array.<module:model/Appointment>} appointments */ appointments = undefined; /** * @member {Number} count */ count = undefined; /** * @member {String} next */ next = undefined; /** * @member {String} previous */ previous = undefined; /** * @member {String} sync_token */ sync_token = undefined; }