toJson method
Implementation
@override
Object toJson() => {
if (anomalyUri.isNotDefault) 'anomalyUri': anomalyUri,
if (summary.isNotDefault) 'summary': summary,
if (anomaly != null) 'anomaly': anomaly!.toJson(),
if (triggerTime != null) 'triggerTime': triggerTime!.toJson(),
if (condition != null) 'condition': condition!.toJson(),
};