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