@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
32 lines • 1.33 kB
JavaScript
import { GetExtendedContactDetailsAllOfStatisticsLinksFromJSON, GetExtendedContactDetailsAllOfStatisticsLinksToJSON, } from './GetExtendedContactDetailsAllOfStatisticsLinks.js';
export function instanceOfGetExtendedContactDetailsAllOfStatisticsClicked(value) {
let isInstance = true;
isInstance = isInstance && 'campaignId' in value;
isInstance = isInstance && 'links' in value;
return isInstance;
}
export function GetExtendedContactDetailsAllOfStatisticsClickedFromJSON(json) {
return GetExtendedContactDetailsAllOfStatisticsClickedFromJSONTyped(json, false);
}
export function GetExtendedContactDetailsAllOfStatisticsClickedFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
campaignId: json['campaignId'],
links: json['links'].map(GetExtendedContactDetailsAllOfStatisticsLinksFromJSON),
};
}
export function GetExtendedContactDetailsAllOfStatisticsClickedToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
campaignId: value.campaignId,
links: value.links.map(GetExtendedContactDetailsAllOfStatisticsLinksToJSON),
};
}
//# sourceMappingURL=GetExtendedContactDetailsAllOfStatisticsClicked.js.map