@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
45 lines • 1.71 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormsFileData = void 0;
class FormsFileData {
constructor(data) {
let sourceDefault = "value";
this.source = typeof (data === null || data === void 0 ? void 0 : data.source) !== "undefined" ? data === null || data === void 0 ? void 0 : data.source : sourceDefault;
let uriDefault = "";
this.uri = typeof (data === null || data === void 0 ? void 0 : data.uri) !== "undefined" ? data === null || data === void 0 ? void 0 : data.uri : uriDefault;
this.value = data === null || data === void 0 ? void 0 : data.value;
}
static getSourceDefault() {
return "value";
}
static getSourceDescription() {
return "Selects the data source for the hereby expressed resource. Possible values are:\n\n* value = The element's value shall contain the BASE64 encoded data.\n* uri = The data shall be located at the given uri.";
}
static getUriDefault() {
return "";
}
static getUriDescription() {
return "The uri the data shall be located at. (This shall only have effect, if the \"source\" is \"uri\".)";
}
static getValueDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new FormsFileData(data);
}
toJson() {
return {
'source': this.source,
'uri': this.uri,
'value': this.value,
};
}
clone() {
return FormsFileData.fromJson(this.toJson());
}
}
exports.FormsFileData = FormsFileData;
//# sourceMappingURL=FormsFileData.js.map