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