UNPKG

wallee

Version:
37 lines (36 loc) 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfFeatureCategory = instanceOfFeatureCategory; exports.FeatureCategoryFromJSON = FeatureCategoryFromJSON; exports.FeatureCategoryFromJSONTyped = FeatureCategoryFromJSONTyped; exports.FeatureCategoryToJSON = FeatureCategoryToJSON; exports.FeatureCategoryToJSONTyped = FeatureCategoryToJSONTyped; /** * Check if a given object implements the FeatureCategory interface. */ function instanceOfFeatureCategory(value) { return true; } function FeatureCategoryFromJSON(json) { return FeatureCategoryFromJSONTyped(json, false); } function FeatureCategoryFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'orderWeight': json['orderWeight'] == null ? undefined : json['orderWeight'], 'id': json['id'] == null ? undefined : json['id'], }; } function FeatureCategoryToJSON(json) { return FeatureCategoryToJSONTyped(json, false); } function FeatureCategoryToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }