UNPKG

wallee

Version:
42 lines (41 loc) 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionMetricUpdate = instanceOfSubscriptionMetricUpdate; exports.SubscriptionMetricUpdateFromJSON = SubscriptionMetricUpdateFromJSON; exports.SubscriptionMetricUpdateFromJSONTyped = SubscriptionMetricUpdateFromJSONTyped; exports.SubscriptionMetricUpdateToJSON = SubscriptionMetricUpdateToJSON; exports.SubscriptionMetricUpdateToJSONTyped = SubscriptionMetricUpdateToJSONTyped; /** * Check if a given object implements the SubscriptionMetricUpdate interface. */ function instanceOfSubscriptionMetricUpdate(value) { if (!('version' in value) || value['version'] === undefined) return false; return true; } function SubscriptionMetricUpdateFromJSON(json) { return SubscriptionMetricUpdateFromJSONTyped(json, false); } function SubscriptionMetricUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'version': json['version'], }; } function SubscriptionMetricUpdateToJSON(json) { return SubscriptionMetricUpdateToJSONTyped(json, false); } function SubscriptionMetricUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'description': value['description'], 'version': value['version'], }; }