UNPKG

svix

Version:

Svix webhooks API client and webhook verification library

39 lines 1.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MessageInSerializer = void 0; const applicationIn_1 = require("./applicationIn"); exports.MessageInSerializer = { _fromJsonObject(object) { return { application: object["application"] != null ? applicationIn_1.ApplicationInSerializer._fromJsonObject(object["application"]) : undefined, channels: object["channels"], deliverAt: object["deliverAt"] ? new Date(object["deliverAt"]) : null, eventId: object["eventId"], eventType: object["eventType"], payload: object["payload"], payloadRetentionHours: object["payloadRetentionHours"], payloadRetentionPeriod: object["payloadRetentionPeriod"], tags: object["tags"], transformationsParams: object["transformationsParams"], }; }, _toJsonObject(self) { return { application: self.application != null ? applicationIn_1.ApplicationInSerializer._toJsonObject(self.application) : undefined, channels: self.channels, deliverAt: self.deliverAt, eventId: self.eventId, eventType: self.eventType, payload: self.payload, payloadRetentionHours: self.payloadRetentionHours, payloadRetentionPeriod: self.payloadRetentionPeriod, tags: self.tags, transformationsParams: self.transformationsParams, }; }, }; //# sourceMappingURL=messageIn.js.map