@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
40 lines • 1.31 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomDescription = void 0;
class CustomDescription {
constructor(data) {
let keyDefault = "";
this.key = typeof (data === null || data === void 0 ? void 0 : data.key) !== "undefined" ? data === null || data === void 0 ? void 0 : data.key : keyDefault;
let valueDefault = "";
this.value = typeof (data === null || data === void 0 ? void 0 : data.value) !== "undefined" ? data === null || data === void 0 ? void 0 : data.value : valueDefault;
}
static getKeyDefault() {
return "";
}
static getKeyDescription() {
return "The name of the custom attribute.";
}
static getValueDefault() {
return "";
}
static getValueDescription() {
return "The value of the custom attribute.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new CustomDescription(data);
}
toJson() {
return {
'key': this.key,
'value': this.value,
};
}
clone() {
return CustomDescription.fromJson(this.toJson());
}
}
exports.CustomDescription = CustomDescription;
//# sourceMappingURL=CustomDescription.js.map