UNPKG

wallee

Version:
43 lines (42 loc) 2.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionProductComponentGroup = instanceOfSubscriptionProductComponentGroup; exports.SubscriptionProductComponentGroupFromJSON = SubscriptionProductComponentGroupFromJSON; exports.SubscriptionProductComponentGroupFromJSONTyped = SubscriptionProductComponentGroupFromJSONTyped; exports.SubscriptionProductComponentGroupToJSON = SubscriptionProductComponentGroupToJSON; exports.SubscriptionProductComponentGroupToJSONTyped = SubscriptionProductComponentGroupToJSONTyped; const SubscriptionProductVersion_1 = require("./SubscriptionProductVersion"); /** * Check if a given object implements the SubscriptionProductComponentGroup interface. */ function instanceOfSubscriptionProductComponentGroup(value) { return true; } function SubscriptionProductComponentGroupFromJSON(json) { return SubscriptionProductComponentGroupFromJSONTyped(json, false); } function SubscriptionProductComponentGroupFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'productVersion': json['productVersion'] == null ? undefined : (0, SubscriptionProductVersion_1.SubscriptionProductVersionFromJSON)(json['productVersion']), 'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'], 'name': json['name'] == null ? undefined : json['name'], 'optional': json['optional'] == null ? undefined : json['optional'], 'id': json['id'] == null ? undefined : json['id'], 'version': json['version'] == null ? undefined : json['version'], }; } function SubscriptionProductComponentGroupToJSON(json) { return SubscriptionProductComponentGroupToJSONTyped(json, false); } function SubscriptionProductComponentGroupToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'productVersion': (0, SubscriptionProductVersion_1.SubscriptionProductVersionToJSON)(value['productVersion']), }; }