toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'path': path,
  'line': line,
  'column': column,
  'text': text,
  if (before.isNotEmpty) 'before': before,
  if (after.isNotEmpty) 'after': after,
};