toJson method
Implementation
@override
Map<String, Object?> toJson() => {
'seq': sequence,
'kind': 'failure',
'ts': timestamp.toIso8601String(),
'tool': tool,
'elapsedMs': elapsedMs,
'summary': summary,
'errorKind': errorKind.name,
if (detail != null) 'detail': detail,
if (args != null) 'args': args,
};