UNPKG

wallee

Version:
36 lines (35 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfLabelDescriptorType = instanceOfLabelDescriptorType; exports.LabelDescriptorTypeFromJSON = LabelDescriptorTypeFromJSON; exports.LabelDescriptorTypeFromJSONTyped = LabelDescriptorTypeFromJSONTyped; exports.LabelDescriptorTypeToJSON = LabelDescriptorTypeToJSON; exports.LabelDescriptorTypeToJSONTyped = LabelDescriptorTypeToJSONTyped; /** * Check if a given object implements the LabelDescriptorType interface. */ function instanceOfLabelDescriptorType(value) { return true; } function LabelDescriptorTypeFromJSON(json) { return LabelDescriptorTypeFromJSONTyped(json, false); } function LabelDescriptorTypeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'id': json['id'] == null ? undefined : json['id'], }; } function LabelDescriptorTypeToJSON(json) { return LabelDescriptorTypeToJSONTyped(json, false); } function LabelDescriptorTypeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }