UNPKG

kucoin-universal-sdk

Version:
66 lines 1.88 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.Get24hrStatsReqBuilder = exports.Get24hrStatsReq = void 0; const class_transformer_1 = require("class-transformer"); class Get24hrStatsReq { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { } /** * Creates a new instance of the `Get24hrStatsReq` class. * The builder pattern allows step-by-step construction of a `Get24hrStatsReq` object. */ static builder() { return new Get24hrStatsReqBuilder(new Get24hrStatsReq()); } /** * Creates a new instance of the `Get24hrStatsReq` class with the given data. */ static create(data) { let obj = new Get24hrStatsReq(); obj.symbol = data.symbol; return obj; } /** * Convert the object to a JSON string. */ toJson() { return JSON.stringify((0, class_transformer_1.instanceToPlain)(this)); } /** * Create an object from a JSON string. */ static fromJson(input) { return this.fromObject(JSON.parse(input)); } /** * Create an object from Js Object. */ static fromObject(jsonObject) { return (0, class_transformer_1.plainToClassFromExist)(new Get24hrStatsReq(), jsonObject); } } exports.Get24hrStatsReq = Get24hrStatsReq; class Get24hrStatsReqBuilder { constructor(obj) { this.obj = obj; this.obj = obj; } /** * symbol */ setSymbol(value) { this.obj.symbol = value; return this; } /** * Get the final object. */ build() { return this.obj; } } exports.Get24hrStatsReqBuilder = Get24hrStatsReqBuilder; //# sourceMappingURL=model_get24hr_stats_req.js.map