wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.84 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSubscriptionComponentReferenceConfiguration = instanceOfSubscriptionComponentReferenceConfiguration;
exports.SubscriptionComponentReferenceConfigurationFromJSON = SubscriptionComponentReferenceConfigurationFromJSON;
exports.SubscriptionComponentReferenceConfigurationFromJSONTyped = SubscriptionComponentReferenceConfigurationFromJSONTyped;
exports.SubscriptionComponentReferenceConfigurationToJSON = SubscriptionComponentReferenceConfigurationToJSON;
exports.SubscriptionComponentReferenceConfigurationToJSONTyped = SubscriptionComponentReferenceConfigurationToJSONTyped;
/**
* Check if a given object implements the SubscriptionComponentReferenceConfiguration interface.
*/
function instanceOfSubscriptionComponentReferenceConfiguration(value) {
return true;
}
function SubscriptionComponentReferenceConfigurationFromJSON(json) {
return SubscriptionComponentReferenceConfigurationFromJSONTyped(json, false);
}
function SubscriptionComponentReferenceConfigurationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'quantity': json['quantity'] == null ? undefined : json['quantity'],
'productComponentReferenceId': json['productComponentReferenceId'] == null ? undefined : json['productComponentReferenceId'],
};
}
function SubscriptionComponentReferenceConfigurationToJSON(json) {
return SubscriptionComponentReferenceConfigurationToJSONTyped(json, false);
}
function SubscriptionComponentReferenceConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'quantity': value['quantity'],
'productComponentReferenceId': value['productComponentReferenceId'],
};
}