toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  ...extensions,
  '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,
  'kind': kind,
  if (workingDirectory != null) 'workingDirectory': workingDirectory,
  'runnerMode': runnerMode,
  'timeoutSeconds': timeoutSeconds,
  if (hasProfileRestriction || profiles.isNotEmpty) 'profiles': profiles,
};