toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  return {
    if (branch != null) 'branch': branch,
    if (message != null) 'message': message,
    'includeScopes': includeScopes,
    'includeCommitId': includeCommitId,
    'linkToCommits': linkToCommits,
    'updateGitTagRefs': updateGitTagRefs,
    'aggregateChangelogs': aggregateChangelogs
        .map((config) => config.toJson())
        .toList(),
    'fetchTags': fetchTags,
    'hooks': hooks.toJson(),
    'changelogFormat': {
      'includeDate': includeDateInChangelogEntry,
    },
  };
}