toJson method
The finding as a JSON-compatible map.
Implementation
Map<String, Object> toJson() => {
'rule': rule.id,
'severity': severity.name,
'path': path,
'line': line,
'column': column,
'message': message,
'why': rule.why,
'fix': rule.fix,
};