toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (fromTag != null) 'fromTag': fromTag,
if (fromCommit != null) 'fromCommit': fromCommit,
'toCommit': toCommit,
'commitCount': commitCount,
'commits': commits.map((c) => c.toJson()).toList(),
};
}