@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
29 lines • 821 B
JavaScript
import { GetWebhookFromJSON, GetWebhookToJSON } from './GetWebhook.js';
export function instanceOfGetWebhooks(value) {
let isInstance = true;
isInstance = isInstance && 'webhooks' in value;
return isInstance;
}
export function GetWebhooksFromJSON(json) {
return GetWebhooksFromJSONTyped(json, false);
}
export function GetWebhooksFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
webhooks: json['webhooks'].map(GetWebhookFromJSON),
};
}
export function GetWebhooksToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
webhooks: value.webhooks.map(GetWebhookToJSON),
};
}
//# sourceMappingURL=GetWebhooks.js.map