UNPKG

wallee

Version:
38 lines (37 loc) 1.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionProductVersionRetirementRequest = instanceOfSubscriptionProductVersionRetirementRequest; exports.SubscriptionProductVersionRetirementRequestFromJSON = SubscriptionProductVersionRetirementRequestFromJSON; exports.SubscriptionProductVersionRetirementRequestFromJSONTyped = SubscriptionProductVersionRetirementRequestFromJSONTyped; exports.SubscriptionProductVersionRetirementRequestToJSON = SubscriptionProductVersionRetirementRequestToJSON; exports.SubscriptionProductVersionRetirementRequestToJSONTyped = SubscriptionProductVersionRetirementRequestToJSONTyped; /** * Check if a given object implements the SubscriptionProductVersionRetirementRequest interface. */ function instanceOfSubscriptionProductVersionRetirementRequest(value) { return true; } function SubscriptionProductVersionRetirementRequestFromJSON(json) { return SubscriptionProductVersionRetirementRequestFromJSONTyped(json, false); } function SubscriptionProductVersionRetirementRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'respectTerminationPeriods': json['respectTerminationPeriods'] == null ? undefined : json['respectTerminationPeriods'], 'targetProduct': json['targetProduct'] == null ? undefined : json['targetProduct'], }; } function SubscriptionProductVersionRetirementRequestToJSON(json) { return SubscriptionProductVersionRetirementRequestToJSONTyped(json, false); } function SubscriptionProductVersionRetirementRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'respectTerminationPeriods': value['respectTerminationPeriods'], 'targetProduct': value['targetProduct'], }; }