UNPKG

wallee

Version:
46 lines (45 loc) 2.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionAffiliateDeleting = instanceOfSubscriptionAffiliateDeleting; exports.SubscriptionAffiliateDeletingFromJSON = SubscriptionAffiliateDeletingFromJSON; exports.SubscriptionAffiliateDeletingFromJSONTyped = SubscriptionAffiliateDeletingFromJSONTyped; exports.SubscriptionAffiliateDeletingToJSON = SubscriptionAffiliateDeletingToJSON; exports.SubscriptionAffiliateDeletingToJSONTyped = SubscriptionAffiliateDeletingToJSONTyped; const CreationEntityState_1 = require("./CreationEntityState"); /** * Check if a given object implements the SubscriptionAffiliateDeleting interface. */ function instanceOfSubscriptionAffiliateDeleting(value) { return true; } function SubscriptionAffiliateDeletingFromJSON(json) { return SubscriptionAffiliateDeletingFromJSONTyped(json, false); } function SubscriptionAffiliateDeletingFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'reference': json['reference'] == null ? undefined : json['reference'], 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'metaData': json['metaData'] == null ? undefined : json['metaData'], 'name': json['name'] == null ? undefined : json['name'], 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'externalId': json['externalId'] == null ? undefined : json['externalId'], 'language': json['language'] == null ? undefined : json['language'], '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 SubscriptionAffiliateDeletingToJSON(json) { return SubscriptionAffiliateDeletingToJSONTyped(json, false); } function SubscriptionAffiliateDeletingToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']), }; }