UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

67 lines (60 loc) 2.08 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 KillSwitchSegmentData model module. * @module model/KillSwitchSegmentData * @version v0 */ export class KillSwitchSegmentData { /** * Constructs a new <code>KillSwitchSegmentData</code>. * @alias module:model/KillSwitchSegmentData * @class */ constructor() { } /** * Constructs a <code>KillSwitchSegmentData</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/KillSwitchSegmentData} obj Optional instance to populate. * @return {module:model/KillSwitchSegmentData} The populated <code>KillSwitchSegmentData</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new KillSwitchSegmentData(); if (data.hasOwnProperty('segment')) obj.segment = ApiClient.convertToType(data['segment'], Object); if (data.hasOwnProperty('segment_status')) obj.segmentStatus = ApiClient.convertToType(data['segment_status'], Object); if (data.hasOwnProperty('kill_switch_enabled')) obj.killSwitchEnabled = ApiClient.convertToType(data['kill_switch_enabled'], Object); } return obj; } } /** * @member {Object} segment */ KillSwitchSegmentData.prototype.segment = undefined; /** * @member {Object} segmentStatus */ KillSwitchSegmentData.prototype.segmentStatus = undefined; /** * @member {Object} killSwitchEnabled */ KillSwitchSegmentData.prototype.killSwitchEnabled = undefined;