UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 1.69 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ErrorCountServerState = void 0; class ErrorCountServerState { constructor(data) { let codeDefault = 0; this.code = typeof (data === null || data === void 0 ? void 0 : data.code) !== "undefined" ? data === null || data === void 0 ? void 0 : data.code : codeDefault; let countDefault = 1; this.count = typeof (data === null || data === void 0 ? void 0 : data.count) !== "undefined" ? data === null || data === void 0 ? void 0 : data.count : countDefault; let descriptionDefault = ""; this.description = typeof (data === null || data === void 0 ? void 0 : data.description) !== "undefined" ? data === null || data === void 0 ? void 0 : data.description : descriptionDefault; } static getCodeDefault() { return 0; } static getCodeDescription() { return ""; } static getCountDefault() { return 1; } static getCountDescription() { return ""; } static getDescriptionDefault() { return ""; } static getDescriptionDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ErrorCountServerState(data); } toJson() { return { 'code': this.code, 'count': this.count, 'description': this.description, }; } clone() { return ErrorCountServerState.fromJson(this.toJson()); } } exports.ErrorCountServerState = ErrorCountServerState; //# sourceMappingURL=ErrorCountServerState.js.map