wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.22 kB
JavaScript
/**
* Check if a given object implements the SubscriptionProductVersionRetirementRequest interface.
*/
export function instanceOfSubscriptionProductVersionRetirementRequest(value) {
return true;
}
export function SubscriptionProductVersionRetirementRequestFromJSON(json) {
return SubscriptionProductVersionRetirementRequestFromJSONTyped(json, false);
}
export function SubscriptionProductVersionRetirementRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'respectTerminationPeriods': json['respectTerminationPeriods'] == null ? undefined : json['respectTerminationPeriods'],
'targetProduct': json['targetProduct'] == null ? undefined : json['targetProduct'],
};
}
export function SubscriptionProductVersionRetirementRequestToJSON(json) {
return SubscriptionProductVersionRetirementRequestToJSONTyped(json, false);
}
export function SubscriptionProductVersionRetirementRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'respectTerminationPeriods': value['respectTerminationPeriods'],
'targetProduct': value['targetProduct'],
};
}