UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

31 lines 1.11 kB
export function instanceOfGetExtendedContactDetailsAllOfStatisticsMessagesSent(value) { let isInstance = true; isInstance = isInstance && 'campaignId' in value; isInstance = isInstance && 'eventTime' in value; return isInstance; } export function GetExtendedContactDetailsAllOfStatisticsMessagesSentFromJSON(json) { return GetExtendedContactDetailsAllOfStatisticsMessagesSentFromJSONTyped(json, false); } export function GetExtendedContactDetailsAllOfStatisticsMessagesSentFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { campaignId: json['campaignId'], eventTime: new Date(json['eventTime']), }; } export function GetExtendedContactDetailsAllOfStatisticsMessagesSentToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { campaignId: value.campaignId, eventTime: value.eventTime.toISOString(), }; } //# sourceMappingURL=GetExtendedContactDetailsAllOfStatisticsMessagesSent.js.map