GithubCommitModel constructor

  1. @JsonSerializable.new(explicitToJson: true)
const GithubCommitModel({
  1. String? sha,
  2. String? message,
  3. @Default.new(0) int commentCount,
  4. @Default.new(0) int additionsCount,
  5. @Default.new(0) int deletionsCount,
  6. @Default.new(0) int totalCount,
  7. ModelUri? url,
  8. ModelUri? htmlUrl,
  9. ModelUri? commentsUrl,
  10. @refParam GithubUserModelRef? author,
  11. @refParam GithubUserModelRef? committer,
  12. ModelTimestamp? authorDate,
  13. ModelTimestamp? committerDate,
  14. @jsonParam @Default.new([]) List<GithubCommitModel> parents,
  15. @jsonParam @Default.new([]) List<GithubContentModel> contents,
  16. @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;