UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

71 lines (64 loc) 2.25 kB
/* * OpenAPI definition * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v0 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 3.0.66 * * Do not edit the class manually. * */ import {ApiClient} from '../ApiClient'; import {SearchMetaData} from './SearchMetaData'; import {InstrumentData} from './InstrumentData'; /** * The SearchInstrumentResponse model module. * @module model/SearchInstrumentResponse * @version v0 */ export class SearchInstrumentResponse { /** * Constructs a new <code>SearchInstrumentResponse</code>. * @alias module:model/SearchInstrumentResponse * @class */ constructor() { } /** * Constructs a <code>SearchInstrumentResponse</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/SearchInstrumentResponse} obj Optional instance to populate. * @return {module:model/SearchInstrumentResponse} The populated <code>SearchInstrumentResponse</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new SearchInstrumentResponse(); if (data.hasOwnProperty('status')) obj.status = ApiClient.convertToType(data['status'], 'String'); if (data.hasOwnProperty('data')) obj.data = ApiClient.convertToType(data['data'], [InstrumentData]); if (data.hasOwnProperty('meta_data')) obj.metaData = ApiClient.convertToType(data['meta_data'], SearchMetaData); } return obj; } } /** * @member {Object} status */ SearchInstrumentResponse.prototype.status = undefined; /** * Response data for search instrument request * @member {Object} data */ SearchInstrumentResponse.prototype.data = undefined; /** * Meta data for search instrument response * @member {module:model/SearchMetaData} metaData */ SearchInstrumentResponse.prototype.metaData = undefined;