UNPKG

wallee

Version:
47 lines (46 loc) 2.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionAffiliateInactive = instanceOfSubscriptionAffiliateInactive; exports.SubscriptionAffiliateInactiveFromJSON = SubscriptionAffiliateInactiveFromJSON; exports.SubscriptionAffiliateInactiveFromJSONTyped = SubscriptionAffiliateInactiveFromJSONTyped; exports.SubscriptionAffiliateInactiveToJSON = SubscriptionAffiliateInactiveToJSON; exports.SubscriptionAffiliateInactiveToJSONTyped = SubscriptionAffiliateInactiveToJSONTyped; const CreationEntityState_1 = require("./CreationEntityState"); /** * Check if a given object implements the SubscriptionAffiliateInactive interface. */ function instanceOfSubscriptionAffiliateInactive(value) { if (!('version' in value) || value['version'] === undefined) return false; return true; } function SubscriptionAffiliateInactiveFromJSON(json) { return SubscriptionAffiliateInactiveFromJSONTyped(json, false); } function SubscriptionAffiliateInactiveFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'metaData': json['metaData'] == null ? undefined : json['metaData'], 'name': json['name'] == null ? undefined : json['name'], 'language': json['language'] == null ? undefined : json['language'], 'state': json['state'] == null ? undefined : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']), 'version': json['version'], }; } function SubscriptionAffiliateInactiveToJSON(json) { return SubscriptionAffiliateInactiveToJSONTyped(json, false); } function SubscriptionAffiliateInactiveToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'metaData': value['metaData'], 'name': value['name'], 'language': value['language'], 'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']), 'version': value['version'], }; }