UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 1.74 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.JavaStatusGC = void 0; class JavaStatusGC { constructor(data) { let collectionCountDefault = 0; this.collectionCount = typeof (data === null || data === void 0 ? void 0 : data.collectionCount) !== "undefined" ? data === null || data === void 0 ? void 0 : data.collectionCount : collectionCountDefault; let collectionTimeDefault = 0; this.collectionTime = typeof (data === null || data === void 0 ? void 0 : data.collectionTime) !== "undefined" ? data === null || data === void 0 ? void 0 : data.collectionTime : collectionTimeDefault; let nameDefault = ""; this.name = typeof (data === null || data === void 0 ? void 0 : data.name) !== "undefined" ? data === null || data === void 0 ? void 0 : data.name : nameDefault; } static getCollectionCountDefault() { return 0; } static getCollectionCountDescription() { return ""; } static getCollectionTimeDefault() { return 0; } static getCollectionTimeDescription() { return ""; } static getNameDefault() { return ""; } static getNameDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new JavaStatusGC(data); } toJson() { return { 'collectionCount': this.collectionCount, 'collectionTime': this.collectionTime, 'name': this.name, }; } clone() { return JavaStatusGC.fromJson(this.toJson()); } } exports.JavaStatusGC = JavaStatusGC; //# sourceMappingURL=JavaStatusGC.js.map