UNPKG

wallee

Version:
30 lines (29 loc) 970 B
/** * Check if a given object implements the LabelDescriptorGroup interface. */ export function instanceOfLabelDescriptorGroup(value) { return true; } export function LabelDescriptorGroupFromJSON(json) { return LabelDescriptorGroupFromJSONTyped(json, false); } export 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'], }; } export function LabelDescriptorGroupToJSON(json) { return LabelDescriptorGroupToJSONTyped(json, false); } export function LabelDescriptorGroupToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }