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