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