toJson method
Implementation
@override
Object toJson() => {
if (objective.isNotDefault) 'objective': objective.toJson(),
if (deployedModelId.isNotDefault) 'deployedModelId': deployedModelId,
if (anomalyCount.isNotDefault) 'anomalyCount': anomalyCount,
if (featureStats.isNotDefault) 'featureStats': encodeList(featureStats),
};