UNPKG

wallee

Version:
46 lines (45 loc) 2.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionProductComponentGroupUpdate = instanceOfSubscriptionProductComponentGroupUpdate; exports.SubscriptionProductComponentGroupUpdateFromJSON = SubscriptionProductComponentGroupUpdateFromJSON; exports.SubscriptionProductComponentGroupUpdateFromJSONTyped = SubscriptionProductComponentGroupUpdateFromJSONTyped; exports.SubscriptionProductComponentGroupUpdateToJSON = SubscriptionProductComponentGroupUpdateToJSON; exports.SubscriptionProductComponentGroupUpdateToJSONTyped = SubscriptionProductComponentGroupUpdateToJSONTyped; /** * Check if a given object implements the SubscriptionProductComponentGroupUpdate interface. */ function instanceOfSubscriptionProductComponentGroupUpdate(value) { if (!('version' in value) || value['version'] === undefined) return false; return true; } function SubscriptionProductComponentGroupUpdateFromJSON(json) { return SubscriptionProductComponentGroupUpdateFromJSONTyped(json, false); } function SubscriptionProductComponentGroupUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'productVersion': json['productVersion'] == null ? undefined : json['productVersion'], 'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'], 'name': json['name'] == null ? undefined : json['name'], 'optional': json['optional'] == null ? undefined : json['optional'], 'version': json['version'], }; } function SubscriptionProductComponentGroupUpdateToJSON(json) { return SubscriptionProductComponentGroupUpdateToJSONTyped(json, false); } function SubscriptionProductComponentGroupUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'productVersion': value['productVersion'], 'sortOrder': value['sortOrder'], 'name': value['name'], 'optional': value['optional'], 'version': value['version'], }; }