UNPKG

wallee

Version:
37 lines (36 loc) 1.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfLabelDescriptorGroup = instanceOfLabelDescriptorGroup; exports.LabelDescriptorGroupFromJSON = LabelDescriptorGroupFromJSON; exports.LabelDescriptorGroupFromJSONTyped = LabelDescriptorGroupFromJSONTyped; exports.LabelDescriptorGroupToJSON = LabelDescriptorGroupToJSON; exports.LabelDescriptorGroupToJSONTyped = LabelDescriptorGroupToJSONTyped; /** * Check if a given object implements the LabelDescriptorGroup interface. */ function instanceOfLabelDescriptorGroup(value) { return true; } function LabelDescriptorGroupFromJSON(json) { return LabelDescriptorGroupFromJSONTyped(json, false); } function LabelDescriptorGroupFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'weight': json['weight'] == null ? undefined : json['weight'], 'id': json['id'] == null ? undefined : json['id'], }; } function LabelDescriptorGroupToJSON(json) { return LabelDescriptorGroupToJSONTyped(json, false); } function LabelDescriptorGroupToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }