UNPKG

wallee

Version:
29 lines (28 loc) 891 B
/** * Check if a given object implements the LabelDescriptorType interface. */ export function instanceOfLabelDescriptorType(value) { return true; } export function LabelDescriptorTypeFromJSON(json) { return LabelDescriptorTypeFromJSONTyped(json, false); } export 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'], }; } export function LabelDescriptorTypeToJSON(json) { return LabelDescriptorTypeToJSONTyped(json, false); } export function LabelDescriptorTypeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }