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