toJson method

Map<String, dynamic> toJson()

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,
  };
}