@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
36 lines • 925 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Info = void 0;
const index_1 = require("./../index");
class Info {
constructor(data) {
let infoTypeDefault = "form";
this.infoType = typeof data.infoType !== "undefined" ? data.infoType : infoTypeDefault;
}
static getInfoTypeDefault() {
return "form";
}
static getInfoTypeDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
switch (data.infoType) {
case 'form':
return index_1.InfoForm.fromJson(data);
}
return new Info(data);
}
toJson() {
return {
'infoType': this.infoType,
};
}
clone() {
return Info.fromJson(this.toJson());
}
}
exports.Info = Info;
//# sourceMappingURL=Info.js.map