@override Object toJson() => { if (type.isNotDefault) 'type': type, if (labels.isNotDefault) 'labels': labels, };