UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

70 lines (63 loc) 2.11 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'; /** * The SectorMarketCapAmount model module. * @module model/SectorMarketCapAmount * @version v0 */ export class SectorMarketCapAmount { /** * Constructs a new <code>SectorMarketCapAmount</code>. * @alias module:model/SectorMarketCapAmount * @class */ constructor() { } /** * Constructs a <code>SectorMarketCapAmount</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/SectorMarketCapAmount} obj Optional instance to populate. * @return {module:model/SectorMarketCapAmount} The populated <code>SectorMarketCapAmount</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new SectorMarketCapAmount(); if (data.hasOwnProperty('value')) obj.value = ApiClient.convertToType(data['value'], Object); if (data.hasOwnProperty('unit')) obj.unit = ApiClient.convertToType(data['unit'], Object); if (data.hasOwnProperty('formatted')) obj.formatted = ApiClient.convertToType(data['formatted'], Object); } return obj; } } /** * Numeric value of the market capitalisation * @member {Object} value */ SectorMarketCapAmount.prototype.value = undefined; /** * Unit of the market capitalisation value * @member {Object} unit */ SectorMarketCapAmount.prototype.unit = undefined; /** * Human-readable formatted market capitalisation * @member {Object} formatted */ SectorMarketCapAmount.prototype.formatted = undefined;