@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
40 lines • 1.41 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileUpdate = void 0;
class FileUpdate {
constructor(data) {
let fileNameDefault = "";
this.fileName = typeof (data === null || data === void 0 ? void 0 : data.fileName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.fileName : fileNameDefault;
let parentDocumentIdDefault = "";
this.parentDocumentId = typeof (data === null || data === void 0 ? void 0 : data.parentDocumentId) !== "undefined" ? data === null || data === void 0 ? void 0 : data.parentDocumentId : parentDocumentIdDefault;
}
static getFileNameDefault() {
return "";
}
static getFileNameDescription() {
return "File name for the document (without extension)";
}
static getParentDocumentIdDefault() {
return "";
}
static getParentDocumentIdDescription() {
return "The id of the parent document";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new FileUpdate(data);
}
toJson() {
return {
'fileName': this.fileName,
'parentDocumentId': this.parentDocumentId,
};
}
clone() {
return FileUpdate.fromJson(this.toJson());
}
}
exports.FileUpdate = FileUpdate;
//# sourceMappingURL=FileUpdate.js.map