UNPKG

wallee

Version:
35 lines (34 loc) 1.31 kB
import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState'; /** * Check if a given object implements the WebhookIdentity interface. */ export function instanceOfWebhookIdentity(value) { return true; } export function WebhookIdentityFromJSON(json) { return WebhookIdentityFromJSONTyped(json, false); } export 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 : CreationEntityStateFromJSON(json['state']), 'version': json['version'] == null ? undefined : json['version'], }; } export function WebhookIdentityToJSON(json) { return WebhookIdentityToJSONTyped(json, false); } export function WebhookIdentityToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': CreationEntityStateToJSON(value['state']), }; }