UNPKG

@gitchrisqueen/tdameritrade-api-js-client

Version:
63 lines (48 loc) 1.66 kB
/** * TD Ameritrade API - OAuth2 * This is replication of the TD Ameritrade API. * * OpenAPI spec version: 0.1.4 * * * 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 SubscriptionKeyKeys from './SubscriptionKeyKeys'; /** * The SubscriptionKey model module. * @module model/SubscriptionKey * @version 0.1.4 */ export default class SubscriptionKey { /** * Constructs a new <code>SubscriptionKey</code>. * @alias module:model/SubscriptionKey * @class */ constructor() { } /** * Constructs a <code>SubscriptionKey</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/SubscriptionKey} obj Optional instance to populate. * @return {module:model/SubscriptionKey} The populated <code>SubscriptionKey</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new SubscriptionKey(); if (data.hasOwnProperty('keys')) { obj['keys'] = ApiClient.convertToType(data['keys'], [SubscriptionKeyKeys]); } } return obj; } /** * @member {Array.<module:model/SubscriptionKeyKeys>} keys */ 'keys' = undefined; }