@override Object toJson() => { if (objective.isNotDefault) 'objective': objective.toJson(), if (featureStatsAnomaly != null) 'featureStatsAnomaly': featureStatsAnomaly!.toJson(), };