upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
54 lines (49 loc) • 1.77 kB
JavaScript
/*
* 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.54
*
* Do not edit the class manually.
*
*/
import {ApiClient} from '../ApiClient';
import {TradeHistoryResponsePageData} from './TradeHistoryResponsePageData';
/**
* The TradeHistoryResponseMetaData model module.
* @module model/TradeHistoryResponseMetaData
* @version v0
*/
export class TradeHistoryResponseMetaData {
/**
* Constructs a new <code>TradeHistoryResponseMetaData</code>.
* @alias module:model/TradeHistoryResponseMetaData
* @class
*/
constructor() {
}
/**
* Constructs a <code>TradeHistoryResponseMetaData</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/TradeHistoryResponseMetaData} obj Optional instance to populate.
* @return {module:model/TradeHistoryResponseMetaData} The populated <code>TradeHistoryResponseMetaData</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new TradeHistoryResponseMetaData();
if (data.hasOwnProperty('page'))
obj.page = TradeHistoryResponsePageData.constructFromObject(data['page']);
}
return obj;
}
}
/**
* @member {module:model/TradeHistoryResponsePageData} page
*/
TradeHistoryResponseMetaData.prototype.page = undefined;