@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
28 lines • 977 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NamedDestination = void 0;
const index_1 = require("./../index");
class NamedDestination extends index_1.DestinationEvent {
constructor(data) {
super(data);
this.goToNamed = index_1.NamedDestinationGoToNamed.fromJson(data === null || data === void 0 ? void 0 : data.goToNamed);
}
static getGoToNamedDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new NamedDestination(data);
}
toJson() {
var _a;
return Object.assign(Object.assign({}, (super.toJson())), { 'goToNamed': (_a = this.goToNamed) === null || _a === void 0 ? void 0 : _a.toJson() });
}
clone() {
return NamedDestination.fromJson(this.toJson());
}
}
exports.NamedDestination = NamedDestination;
//# sourceMappingURL=NamedDestination.js.map