toJson method
Implementation
Map<String, dynamic> toJson() => {
'client': client,
'platform': target.platform,
'type': target.type,
'success': success,
'skipped': skipped,
'version': version,
'durationMs': duration.inMilliseconds,
if (artifact != null) 'artifact': artifact,
if (error != null) 'error': error,
};