toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'timestamp': timestamp.toIso8601String(),
'type': type.name,
'title': title,
'description': description,
'confidence': confidence,
'recommendations': recommendations,
'relatedLogs': relatedLogs,
};
}