toJson method
Implementation
Map<String, Object?> toJson() => {
'hit': number,
'breakpoint': breakpoint.id,
'pattern': breakpoint.pattern.pattern,
'line': matchedLine,
'seq': entry.sequence,
'stream': entry.stream.name,
'at': at.toIso8601String(),
'paused': paused,
if (pauseError != null) 'pauseError': pauseError,
if (screenshotPath != null) 'screenshot': screenshotPath,
if (alsoMatched.isNotEmpty) 'alsoMatched': [for (final e in alsoMatched) e.content.split('\n').first],
};