GithubIssueModel constructor

  1. @JsonSerializable.new(explicitToJson: true)
const GithubIssueModel({
  1. int? id,
  2. int? number,
  3. String? title,
  4. String? body,
  5. String? bodyHtml,
  6. String? bodyText,
  7. String? state,
  8. String? stateReason,
  9. String? activeLockReason,
  10. String? authorAssociation,
  11. String? nodeId,
  12. @Default.new(false) bool draft,
  13. @Default.new(false) bool locked,
  14. @Default.new(0) int commentsCount,
  15. @refParam GithubRepositoryModelRef? repository,
  16. @jsonParam GithubUserModel? user,
  17. @jsonParam GithubUserModel? assignee,
  18. @Default.new([]) @jsonParam List<GithubUserModel> assignees,
  19. @jsonParam GithubUserModel? closedBy,
  20. @jsonParam @Default.new(<GithubLabelValue>[]) List<GithubLabelValue> labels,
  21. ModelUri? url,
  22. ModelUri? htmlUrl,
  23. ModelUri? commentsUrl,
  24. ModelUri? eventsUrl,
  25. ModelUri? labelsUrl,
  26. ModelUri? repositoryUrl,
  27. ModelUri? timelineUrl,
  28. @jsonParam GithubReactionValue? reactions,
  29. ModelTimestamp? closedAt,
  30. @Default.new(ModelTimestamp.now()) ModelTimestamp createdAt,
  31. @Default.new(ModelTimestamp.now()) ModelTimestamp updatedAt,
  32. @Default.new(false) bool fromServer,
})

Model for managing Github issues.

GithubのIssueを管理するためのモデル。

Implementation

// ignore: invalid_annotation_target
@JsonSerializable(explicitToJson: true)
const factory GithubIssueModel({
  int? id,
  int? number,
  String? title,
  String? body,
  String? bodyHtml,
  String? bodyText,
  String? state,
  String? stateReason,
  String? activeLockReason,
  String? authorAssociation,
  String? nodeId,
  @Default(false) bool draft,
  @Default(false) bool locked,
  @Default(0) int commentsCount,
  @refParam GithubRepositoryModelRef? repository,
  @jsonParam GithubUserModel? user,
  @jsonParam GithubUserModel? assignee,
  @Default([]) @jsonParam List<GithubUserModel> assignees,
  @jsonParam GithubUserModel? closedBy,
  @jsonParam @Default(<GithubLabelValue>[]) List<GithubLabelValue> labels,
  ModelUri? url,
  ModelUri? htmlUrl,
  ModelUri? commentsUrl,
  ModelUri? eventsUrl,
  ModelUri? labelsUrl,
  ModelUri? repositoryUrl,
  ModelUri? timelineUrl,
  @jsonParam GithubReactionValue? reactions,
  ModelTimestamp? closedAt,
  @Default(ModelTimestamp.now()) ModelTimestamp createdAt,
  @Default(ModelTimestamp.now()) ModelTimestamp updatedAt,
  @Default(false) bool fromServer,
}) = _GithubIssueModel;