UNPKG

wallee

Version:
37 lines (36 loc) 1.44 kB
import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState'; /** * Check if a given object implements the WebhookUrl interface. */ export function instanceOfWebhookUrl(value) { return true; } export function WebhookUrlFromJSON(json) { return WebhookUrlFromJSONTyped(json, false); } export function WebhookUrlFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'applicationManaged': json['applicationManaged'] == null ? undefined : json['applicationManaged'], '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'], 'url': json['url'] == null ? undefined : json['url'], }; } export function WebhookUrlToJSON(json) { return WebhookUrlToJSONTyped(json, false); } export function WebhookUrlToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': CreationEntityStateToJSON(value['state']), }; }