toJson method
Implementation
@override
Object toJson() => {
'currentStats': ?currentStats?.toJson(),
'baselineStats': ?baselineStats?.toJson(),
if (thresholdValue.isNotDefault)
'thresholdValue': encodeDouble(thresholdValue),
if (hasAnomaly.isNotDefault) 'hasAnomaly': hasAnomaly,
if (modelMonitoringJob.isNotDefault)
'modelMonitoringJob': modelMonitoringJob,
if (schedule.isNotDefault) 'schedule': schedule,
'createTime': ?createTime?.toJson(),
if (algorithm.isNotDefault) 'algorithm': algorithm,
};