toJson method

Map<String, dynamic> toJson()

Implementation

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