core.Map<core.String, core.dynamic> toJson() => { if (confusionMatrix != null) 'confusionMatrix': confusionMatrix!, if (prCurve != null) 'prCurve': prCurve!, };