toJson method
Implementation
@override
Object toJson() => {
'branchName': ?branchName,
'tagName': ?tagName,
'commitSha': ?commitSha,
if (projectId.isNotDefault) 'projectId': projectId,
if (repoName.isNotDefault) 'repoName': repoName,
if (dir.isNotDefault) 'dir': dir,
if (invertRegex.isNotDefault) 'invertRegex': invertRegex,
};