GithubCompareModel constructor
- @JsonSerializable.new(explicitToJson: true)
- String? status,
- @Default.new(0) int aheadBy,
- @Default.new(0) int behindBy,
- @Default.new(0) int totalCommits,
- @jsonParam GithubCommitModel? mergeBaseCommit,
- @jsonParam GithubCommitModel? baseCommit,
- @jsonParam @Default.new([]) List<
GithubCommitModel> commits, - ModelUri? diffUrl,
- ModelUri? patchUrl,
- ModelUri? htmlUrl,
- ModelUri? permalinkUrl,
- @Default.new(false) bool fromServer,
Model for managing Github branch comparisons.
Githubのブランチ比較を管理するためのモデル。
Implementation
@JsonSerializable(explicitToJson: true)
const factory GithubCompareModel({
/// Comparison status (behind, ahead, identical, diverged)
String? status,
/// How many commits ahead
@Default(0) int aheadBy,
/// How many commits behind
@Default(0) int behindBy,
/// Total commits in comparison
@Default(0) int totalCommits,
/// Merge base commit (divergence point)
@jsonParam GithubCommitModel? mergeBaseCommit,
/// Base commit
@jsonParam GithubCommitModel? baseCommit,
/// Commits in the comparison
@jsonParam @Default([]) List<GithubCommitModel> commits,
/// URL for diff
ModelUri? diffUrl,
/// URL for patch
ModelUri? patchUrl,
/// HTML URL
ModelUri? htmlUrl,
/// Permalink URL
ModelUri? permalinkUrl,
@Default(false) bool fromServer,
}) = _GithubCompareModel;