toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    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,
  };
}