@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
34 lines • 1.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Signature = void 0;
const index_1 = require("./../index");
class Signature {
constructor(data) {
this.add = index_1.AddSignature.fromJson(data === null || data === void 0 ? void 0 : data.add);
this.clear = index_1.ClearSignature.fromJson(data === null || data === void 0 ? void 0 : data.clear);
}
static getAddDescription() {
return "";
}
static getClearDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new Signature(data);
}
toJson() {
var _a, _b;
return {
'add': (_a = this.add) === null || _a === void 0 ? void 0 : _a.toJson(),
'clear': (_b = this.clear) === null || _b === void 0 ? void 0 : _b.toJson(),
};
}
clone() {
return Signature.fromJson(this.toJson());
}
}
exports.Signature = Signature;
//# sourceMappingURL=Signature.js.map