toJson method

  1. @override
Object toJson()
override

Implementation

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