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