toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'title': title,
'description': description,
'suggestion': suggestion,
'category': category,
'file': file,
'line': line,
'severity': severity.name,
};
}