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