GithubCommitModel constructor
- @JsonSerializable.new(explicitToJson: true)
- String? sha,
- String? message,
- @Default.new(0) int commentCount,
- @Default.new(0) int additionsCount,
- @Default.new(0) int deletionsCount,
- @Default.new(0) int totalCount,
- ModelUri? url,
- ModelUri? htmlUrl,
- ModelUri? commentsUrl,
- @refParam GithubUserModelRef? author,
- @refParam GithubUserModelRef? committer,
- ModelTimestamp? authorDate,
- ModelTimestamp? committerDate,
- @jsonParam @Default.new([]) List<
GithubCommitModel> parents, - @jsonParam @Default.new([]) List<
GithubContentModel> contents, - @Default.new(false) bool fromServer,
Model for managing Github commits.
Githubのコミットを管理するためのモデル。
Implementation
@JsonSerializable(explicitToJson: true)
const factory GithubCommitModel({
String? sha,
String? message,
@Default(0) int commentCount,
@Default(0) int additionsCount,
@Default(0) int deletionsCount,
@Default(0) int totalCount,
ModelUri? url,
ModelUri? htmlUrl,
ModelUri? commentsUrl,
@refParam GithubUserModelRef? author,
@refParam GithubUserModelRef? committer,
ModelTimestamp? authorDate,
ModelTimestamp? committerDate,
@jsonParam @Default([]) List<GithubCommitModel> parents,
@jsonParam @Default([]) List<GithubContentModel> contents,
@Default(false) bool fromServer,
}) = _GithubCommitModel;