toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (objective.isNotDefault) 'objective': objective.toJson(),
  if (deployedModelId.isNotDefault) 'deployedModelId': deployedModelId,
  if (anomalyCount.isNotDefault) 'anomalyCount': anomalyCount,
  if (featureStats.isNotDefault)
    'featureStats': [for (final i in featureStats) i.toJson()],
};