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