UNPKG

wallee

Version:
60 lines (59 loc) 3.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionProductComponentUpdate = instanceOfSubscriptionProductComponentUpdate; exports.SubscriptionProductComponentUpdateFromJSON = SubscriptionProductComponentUpdateFromJSON; exports.SubscriptionProductComponentUpdateFromJSONTyped = SubscriptionProductComponentUpdateFromJSONTyped; exports.SubscriptionProductComponentUpdateToJSON = SubscriptionProductComponentUpdateToJSON; exports.SubscriptionProductComponentUpdateToJSONTyped = SubscriptionProductComponentUpdateToJSONTyped; /** * Check if a given object implements the SubscriptionProductComponentUpdate interface. */ function instanceOfSubscriptionProductComponentUpdate(value) { if (!('version' in value) || value['version'] === undefined) return false; return true; } function SubscriptionProductComponentUpdateFromJSON(json) { return SubscriptionProductComponentUpdateFromJSONTyped(json, false); } function SubscriptionProductComponentUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'reference': json['reference'] == null ? undefined : json['reference'], 'taxClass': json['taxClass'] == null ? undefined : json['taxClass'], 'quantityStep': json['quantityStep'] == null ? undefined : json['quantityStep'], 'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'], 'componentGroup': json['componentGroup'] == null ? undefined : json['componentGroup'], 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'componentChangeWeight': json['componentChangeWeight'] == null ? undefined : json['componentChangeWeight'], 'version': json['version'], 'maximalQuantity': json['maximalQuantity'] == null ? undefined : json['maximalQuantity'], 'defaultComponent': json['defaultComponent'] == null ? undefined : json['defaultComponent'], 'minimalQuantity': json['minimalQuantity'] == null ? undefined : json['minimalQuantity'], }; } function SubscriptionProductComponentUpdateToJSON(json) { return SubscriptionProductComponentUpdateToJSONTyped(json, false); } function SubscriptionProductComponentUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'reference': value['reference'], 'taxClass': value['taxClass'], 'quantityStep': value['quantityStep'], 'sortOrder': value['sortOrder'], 'componentGroup': value['componentGroup'], 'name': value['name'], 'description': value['description'], 'componentChangeWeight': value['componentChangeWeight'], 'version': value['version'], 'maximalQuantity': value['maximalQuantity'], 'defaultComponent': value['defaultComponent'], 'minimalQuantity': value['minimalQuantity'], }; }