UNPKG

wallee

Version:
31 lines (30 loc) 1.16 kB
/** * Check if a given object implements the SubscriptionProductRetirementRequest interface. */ export function instanceOfSubscriptionProductRetirementRequest(value) { return true; } export function SubscriptionProductRetirementRequestFromJSON(json) { return SubscriptionProductRetirementRequestFromJSONTyped(json, false); } export function SubscriptionProductRetirementRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'respectTerminationPeriods': json['respectTerminationPeriods'] == null ? undefined : json['respectTerminationPeriods'], 'targetProduct': json['targetProduct'] == null ? undefined : json['targetProduct'], }; } export function SubscriptionProductRetirementRequestToJSON(json) { return SubscriptionProductRetirementRequestToJSONTyped(json, false); } export function SubscriptionProductRetirementRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'respectTerminationPeriods': value['respectTerminationPeriods'], 'targetProduct': value['targetProduct'], }; }