UNPKG

wallee

Version:
30 lines (29 loc) 945 B
/** * Check if a given object implements the FeatureCategory interface. */ export function instanceOfFeatureCategory(value) { return true; } export function FeatureCategoryFromJSON(json) { return FeatureCategoryFromJSONTyped(json, false); } export 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'], }; } export function FeatureCategoryToJSON(json) { return FeatureCategoryToJSONTyped(json, false); } export function FeatureCategoryToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }