toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'source': source,
'level': level,
'text': text,
if (url != null) 'url': url,
if (line != null) 'line': line,
if (column != null) 'column': column,
};
}