@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
67 lines • 2.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SchemaEntry = void 0;
class SchemaEntry {
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 nameDefault = "";
this.name = typeof (data === null || data === void 0 ? void 0 : data.name) !== "undefined" ? data === null || data === void 0 ? void 0 : data.name : nameDefault;
let orderDefault = 0;
this.order = typeof (data === null || data === void 0 ? void 0 : data.order) !== "undefined" ? data === null || data === void 0 ? void 0 : data.order : orderDefault;
let typeDefault = "string";
this.type = typeof (data === null || data === void 0 ? void 0 : data.type) !== "undefined" ? data === null || data === void 0 ? void 0 : data.type : typeDefault;
let visibleDefault = true;
this.visible = typeof (data === null || data === void 0 ? void 0 : data.visible) !== "undefined" ? data === null || data === void 0 ? void 0 : data.visible : visibleDefault;
}
static getKeyDefault() {
return "";
}
static getKeyDescription() {
return "The key of the sort schema.";
}
static getNameDefault() {
return "";
}
static getNameDescription() {
return "The name of the sort schema.";
}
static getOrderDefault() {
return 0;
}
static getOrderDescription() {
return "The order number of the sort schema.";
}
static getTypeDefault() {
return "string";
}
static getTypeDescription() {
return "The type of the sort schemas value.";
}
static getVisibleDefault() {
return true;
}
static getVisibleDescription() {
return "If this sort schema shall be visible in views.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new SchemaEntry(data);
}
toJson() {
return {
'key': this.key,
'name': this.name,
'order': this.order,
'type': this.type,
'visible': this.visible,
};
}
clone() {
return SchemaEntry.fromJson(this.toJson());
}
}
exports.SchemaEntry = SchemaEntry;
//# sourceMappingURL=SchemaEntry.js.map