toJson method
Implementation
Map<String, Object?> toJson() => {
'package': package,
if (axes != null) 'axes': axes,
'output': output,
'ok': ok,
'scenarios': scenarios,
'failed': failed,
if (skipped > 0) 'skipped': skipped,
if (error != null) 'error': error,
};