@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
32 lines • 952 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AttachmentsDocument = void 0;
const index_1 = require("./../index");
class AttachmentsDocument {
constructor(data) {
this.attachment = (data.attachment || []).map(index_1.Attachment.fromJson);
}
static getAttachmentDefault() {
return [];
}
static getAttachmentDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new AttachmentsDocument(data);
}
toJson() {
var _a;
return {
'attachment': (_a = this.attachment) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()),
};
}
clone() {
return AttachmentsDocument.fromJson(this.toJson());
}
}
exports.AttachmentsDocument = AttachmentsDocument;
//# sourceMappingURL=AttachmentsDocument.js.map