GithubPullRequestTimelineModel constructor

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

Model for managing Github pull request timelines.

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

Implementation

@JsonSerializable(explicitToJson: true)
const factory GithubPullRequestTimelineModel({
  int? id,
  String? body,
  String? previousBody,
  String? diffHunk,
  String? path,
  int? position,
  int? originalPosition,
  String? commitId,
  String? originalCommitId,
  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? pullRequestUrl,
  ModelUri? commitUrl,
  ModelUri? links,
  ModelUri? issueUrl,
  @Default(ModelTimestamp.now()) ModelTimestamp createdAt,
  @Default(ModelTimestamp.now()) ModelTimestamp updatedAt,
  @Default(false) bool fromServer,
}) = _GithubPullRequestTimelineModel;