UNPKG

wallee

Version:
43 lines (42 loc) 2.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionProductComponentReference = instanceOfSubscriptionProductComponentReference; exports.SubscriptionProductComponentReferenceFromJSON = SubscriptionProductComponentReferenceFromJSON; exports.SubscriptionProductComponentReferenceFromJSONTyped = SubscriptionProductComponentReferenceFromJSONTyped; exports.SubscriptionProductComponentReferenceToJSON = SubscriptionProductComponentReferenceToJSON; exports.SubscriptionProductComponentReferenceToJSONTyped = SubscriptionProductComponentReferenceToJSONTyped; const SubscriptionProductComponentReferenceState_1 = require("./SubscriptionProductComponentReferenceState"); /** * Check if a given object implements the SubscriptionProductComponentReference interface. */ function instanceOfSubscriptionProductComponentReference(value) { return true; } function SubscriptionProductComponentReferenceFromJSON(json) { return SubscriptionProductComponentReferenceFromJSONTyped(json, false); } function SubscriptionProductComponentReferenceFromJSONTyped(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 : (0, SubscriptionProductComponentReferenceState_1.SubscriptionProductComponentReferenceStateFromJSON)(json['state']), 'sku': json['sku'] == null ? undefined : json['sku'], 'version': json['version'] == null ? undefined : json['version'], }; } function SubscriptionProductComponentReferenceToJSON(json) { return SubscriptionProductComponentReferenceToJSONTyped(json, false); } function SubscriptionProductComponentReferenceToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': (0, SubscriptionProductComponentReferenceState_1.SubscriptionProductComponentReferenceStateToJSON)(value['state']), }; }