toJson method
The evidence projection of this result.
Implementation
Map<String, Object?> toJson() => {
'ok': ok,
'url': url?.toString(),
if (ownership != null) 'ownership': ownership!.name,
if (error != null) 'error': error,
if (detail != null) 'detail': detail,
if (exitCode != null) 'exitCode': exitCode,
if (stderr.isNotEmpty) 'stderr': stderr,
'retainedLastKnownGood': retainedLastKnownGood,
if (pid != null) 'pid': pid,
};