UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

34 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Barcode = void 0; const index_1 = require("./../index"); class Barcode { constructor(data) { this.add = index_1.AddBarcode.fromJson(data === null || data === void 0 ? void 0 : data.add); this.detect = index_1.DetectBarcode.fromJson(data === null || data === void 0 ? void 0 : data.detect); } static getAddDescription() { return ""; } static getDetectDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new Barcode(data); } toJson() { var _a, _b; return { 'add': (_a = this.add) === null || _a === void 0 ? void 0 : _a.toJson(), 'detect': (_b = this.detect) === null || _b === void 0 ? void 0 : _b.toJson(), }; } clone() { return Barcode.fromJson(this.toJson()); } } exports.Barcode = Barcode; //# sourceMappingURL=Barcode.js.map