toJson method
Implementation
Map<String, Object?> toJson() => {
'kind': 'zuke.command-result',
'command': command,
'stage': stage,
'exitCode': exitCode,
'status': status.name,
'eligible': eligible,
'diagnostics': diagnostics
.map((diagnostic) => diagnostic.toJson())
.toList(),
..._serializableDetails(),
};