toJson method
Implementation
Map<String, Object?> toJson() => {
'id': id,
'target': target,
'sourcePackage': sourcePackage,
'sourceAdapter': sourceAdapter,
'sourceCompatibilityId': sourceCompatibilityId,
'runnerCompatibilityId': runnerCompatibilityId,
if (executable != null) 'executable': executable,
if (args.isNotEmpty) 'args': args,
if (evidenceTypes.isNotEmpty) 'evidenceTypes': evidenceTypes,
};