wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.41 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSubscriptionMetricType = instanceOfSubscriptionMetricType;
exports.SubscriptionMetricTypeFromJSON = SubscriptionMetricTypeFromJSON;
exports.SubscriptionMetricTypeFromJSONTyped = SubscriptionMetricTypeFromJSONTyped;
exports.SubscriptionMetricTypeToJSON = SubscriptionMetricTypeToJSON;
exports.SubscriptionMetricTypeToJSONTyped = SubscriptionMetricTypeToJSONTyped;
/**
* Check if a given object implements the SubscriptionMetricType interface.
*/
function instanceOfSubscriptionMetricType(value) {
return true;
}
function SubscriptionMetricTypeFromJSON(json) {
return SubscriptionMetricTypeFromJSONTyped(json, false);
}
function SubscriptionMetricTypeFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'feature': json['feature'] == null ? undefined : json['feature'],
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'id': json['id'] == null ? undefined : json['id'],
};
}
function SubscriptionMetricTypeToJSON(json) {
return SubscriptionMetricTypeToJSONTyped(json, false);
}
function SubscriptionMetricTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}