UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

32 lines 1.26 kB
import { GetExtendedContactDetailsAllOfStatisticsLinksFromJSON, GetExtendedContactDetailsAllOfStatisticsLinksToJSON, } from './GetExtendedContactDetailsAllOfStatisticsLinks.js'; export function instanceOfGetContactCampaignStatsClickedInner(value) { let isInstance = true; isInstance = isInstance && 'campaignId' in value; isInstance = isInstance && 'links' in value; return isInstance; } export function GetContactCampaignStatsClickedInnerFromJSON(json) { return GetContactCampaignStatsClickedInnerFromJSONTyped(json, false); } export function GetContactCampaignStatsClickedInnerFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { campaignId: json['campaignId'], links: json['links'].map(GetExtendedContactDetailsAllOfStatisticsLinksFromJSON), }; } export function GetContactCampaignStatsClickedInnerToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { campaignId: value.campaignId, links: value.links.map(GetExtendedContactDetailsAllOfStatisticsLinksToJSON), }; } //# sourceMappingURL=GetContactCampaignStatsClickedInner.js.map