toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'version': version,
'buildNumber': buildNumber,
'mode': releaseMode,
'platforms': platforms,
if (branch != null) 'branch': branch,
if (commitSha != null) 'commit': commitSha,
if (tag != null) 'tag': tag,
if (previousTag != null) 'previousTag': previousTag,
'commits': commitCount,
'breakingChanges': hasBreakingChanges,
if (categoryCounts.isNotEmpty) 'categoryCounts': categoryCounts,
if (artifacts.isNotEmpty) 'artifacts': artifacts,
'deploymentStatus': deploymentStatus,
'timestamp': timestamp,
if (shorebirdPatchDetails != null)
'shorebirdPatch': shorebirdPatchDetails,
};
}