kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
69 lines • 2.21 kB
JavaScript
;
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddSubAccountMarginPermissionReqBuilder = exports.AddSubAccountMarginPermissionReq = void 0;
const class_transformer_1 = require("class-transformer");
class AddSubAccountMarginPermissionReq {
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
constructor() {
// @ts-ignore
this.uid = null;
}
/**
* Creates a new instance of the `AddSubAccountMarginPermissionReq` class.
* The builder pattern allows step-by-step construction of a `AddSubAccountMarginPermissionReq` object.
*/
static builder() {
return new AddSubAccountMarginPermissionReqBuilder(new AddSubAccountMarginPermissionReq());
}
/**
* Creates a new instance of the `AddSubAccountMarginPermissionReq` class with the given data.
*/
static create(data) {
let obj = new AddSubAccountMarginPermissionReq();
obj.uid = data.uid;
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 AddSubAccountMarginPermissionReq(), jsonObject);
}
}
exports.AddSubAccountMarginPermissionReq = AddSubAccountMarginPermissionReq;
class AddSubAccountMarginPermissionReqBuilder {
constructor(obj) {
this.obj = obj;
this.obj = obj;
}
/**
* Sub account UID
*/
setUid(value) {
this.obj.uid = value;
return this;
}
/**
* Get the final object.
*/
build() {
return this.obj;
}
}
exports.AddSubAccountMarginPermissionReqBuilder = AddSubAccountMarginPermissionReqBuilder;
//# sourceMappingURL=model_add_sub_account_margin_permission_req.js.map