@override Object toJson() => { if (prediction != null) 'prediction': prediction, if (reference != null) 'reference': reference, };