UNPKG

wallee

Version:
39 lines (38 loc) 1.73 kB
import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState'; /** * Check if a given object implements the SubscriptionAffiliateDeleted interface. */ export function instanceOfSubscriptionAffiliateDeleted(value) { return true; } export function SubscriptionAffiliateDeletedFromJSON(json) { return SubscriptionAffiliateDeletedFromJSONTyped(json, false); } export function SubscriptionAffiliateDeletedFromJSONTyped(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 : CreationEntityStateFromJSON(json['state']), 'version': json['version'] == null ? undefined : json['version'], }; } export function SubscriptionAffiliateDeletedToJSON(json) { return SubscriptionAffiliateDeletedToJSONTyped(json, false); } export function SubscriptionAffiliateDeletedToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': CreationEntityStateToJSON(value['state']), }; }