GithubIssueTimelineModel constructor

  1. @JsonSerializable.new(explicitToJson: true)
const GithubIssueTimelineModel({
  1. int? id,
  2. String? body,
  3. String? previousBody,
  4. String? authorAssociation,
  5. String? commitId,
  6. String? sha,
  7. String? state,
  8. int? reviewId,
  9. @Default.new(GithubTimelineEvent.unknown) GithubTimelineEvent event,
  10. @jsonParam GithubUserModel? user,
  11. @jsonParam GithubUserModel? from,
  12. @jsonParam GithubUserModel? to,
  13. @jsonParam GithubProjectModel? project,
  14. @jsonParam GithubMilestoneValue? milestone,
  15. @jsonParam GithubReactionValue? reaction,
  16. @jsonParam GithubIssueModel? issue,
  17. @jsonParam GithubPullRequestModel? pullRequest,
  18. @jsonParam GithubLabelValue? label,
  19. ModelUri? url,
  20. ModelUri? commitUrl,
  21. ModelUri? htmlUrl,
  22. ModelUri? issueUrl,
  23. ModelUri? links,
  24. ModelUri? pullRequestUrl,
  25. @Default.new(ModelTimestamp.now()) ModelTimestamp createdAt,
  26. @Default.new(ModelTimestamp.now()) ModelTimestamp updatedAt,
  27. @Default.new(false) bool fromServer,
})

Model for managing Github issue timelines.

GithubのIssueのタイムラインを管理するためのモデル。

Implementation

@JsonSerializable(explicitToJson: true)
const factory GithubIssueTimelineModel({
  int? id,
  String? body,
  String? previousBody,
  String? authorAssociation,
  String? commitId,
  String? sha,
  String? state,
  int? reviewId,
  @Default(GithubTimelineEvent.unknown) GithubTimelineEvent event,
  @jsonParam GithubUserModel? user,
  @jsonParam GithubUserModel? from,
  @jsonParam GithubUserModel? to,
  @jsonParam GithubProjectModel? project,
  @jsonParam GithubMilestoneValue? milestone,
  @jsonParam GithubReactionValue? reaction,
  @jsonParam GithubIssueModel? issue,
  @jsonParam GithubPullRequestModel? pullRequest,
  @jsonParam GithubLabelValue? label,
  ModelUri? url,
  ModelUri? commitUrl,
  ModelUri? htmlUrl,
  ModelUri? issueUrl,
  ModelUri? links,
  ModelUri? pullRequestUrl,
  @Default(ModelTimestamp.now()) ModelTimestamp createdAt,
  @Default(ModelTimestamp.now()) ModelTimestamp updatedAt,
  @Default(false) bool fromServer,
}) = _GithubIssueTimelineModel;