UNPKG

wallee

Version:
42 lines (41 loc) 1.69 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfWebhookIdentity = instanceOfWebhookIdentity; exports.WebhookIdentityFromJSON = WebhookIdentityFromJSON; exports.WebhookIdentityFromJSONTyped = WebhookIdentityFromJSONTyped; exports.WebhookIdentityToJSON = WebhookIdentityToJSON; exports.WebhookIdentityToJSONTyped = WebhookIdentityToJSONTyped; const CreationEntityState_1 = require("./CreationEntityState"); /** * Check if a given object implements the WebhookIdentity interface. */ function instanceOfWebhookIdentity(value) { return true; } function WebhookIdentityFromJSON(json) { return WebhookIdentityFromJSONTyped(json, false); } function WebhookIdentityFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'name': json['name'] == null ? undefined : json['name'], 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'id': json['id'] == null ? undefined : json['id'], 'state': json['state'] == null ? undefined : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']), 'version': json['version'] == null ? undefined : json['version'], }; } function WebhookIdentityToJSON(json) { return WebhookIdentityToJSONTyped(json, false); } function WebhookIdentityToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']), }; }