wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 989 B
JavaScript
/**
* Check if a given object implements the SubscriptionMetricType interface.
*/
export function instanceOfSubscriptionMetricType(value) {
return true;
}
export function SubscriptionMetricTypeFromJSON(json) {
return SubscriptionMetricTypeFromJSONTyped(json, false);
}
export 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'],
};
}
export function SubscriptionMetricTypeToJSON(json) {
return SubscriptionMetricTypeToJSONTyped(json, false);
}
export function SubscriptionMetricTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}