wallee
Version:
TypeScript/JavaScript client for wallee
45 lines (44 loc) • 2.51 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSubscriptionProductVersionRetirement = instanceOfSubscriptionProductVersionRetirement;
exports.SubscriptionProductVersionRetirementFromJSON = SubscriptionProductVersionRetirementFromJSON;
exports.SubscriptionProductVersionRetirementFromJSONTyped = SubscriptionProductVersionRetirementFromJSONTyped;
exports.SubscriptionProductVersionRetirementToJSON = SubscriptionProductVersionRetirementToJSON;
exports.SubscriptionProductVersionRetirementToJSONTyped = SubscriptionProductVersionRetirementToJSONTyped;
const SubscriptionProduct_1 = require("./SubscriptionProduct");
const SubscriptionProductVersion_1 = require("./SubscriptionProductVersion");
/**
* Check if a given object implements the SubscriptionProductVersionRetirement interface.
*/
function instanceOfSubscriptionProductVersionRetirement(value) {
return true;
}
function SubscriptionProductVersionRetirementFromJSON(json) {
return SubscriptionProductVersionRetirementFromJSONTyped(json, false);
}
function SubscriptionProductVersionRetirementFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'respectTerminationPeriods': json['respectTerminationPeriods'] == null ? undefined : json['respectTerminationPeriods'],
'productVersion': json['productVersion'] == null ? undefined : (0, SubscriptionProductVersion_1.SubscriptionProductVersionFromJSON)(json['productVersion']),
'id': json['id'] == null ? undefined : json['id'],
'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])),
'version': json['version'] == null ? undefined : json['version'],
'targetProduct': json['targetProduct'] == null ? undefined : (0, SubscriptionProduct_1.SubscriptionProductFromJSON)(json['targetProduct']),
};
}
function SubscriptionProductVersionRetirementToJSON(json) {
return SubscriptionProductVersionRetirementToJSONTyped(json, false);
}
function SubscriptionProductVersionRetirementToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'productVersion': (0, SubscriptionProductVersion_1.SubscriptionProductVersionToJSON)(value['productVersion']),
'targetProduct': (0, SubscriptionProduct_1.SubscriptionProductToJSON)(value['targetProduct']),
};
}