Issue constructor

Issue({
  1. int id = 0,
  2. String url = '',
  3. String htmlUrl = '',
  4. int number = 0,
  5. String state = '',
  6. String title = '',
  7. User? user,
  8. List<IssueLabel>? labels,
  9. User? assignee,
  10. List<User>? assignees,
  11. Milestone? milestone,
  12. int commentsCount = 0,
  13. IssuePullRequest? pullRequest,
  14. DateTime? createdAt,
  15. DateTime? closedAt,
  16. DateTime? updatedAt,
  17. String body = '',
  18. User? closedBy,
  19. String? activeLockReason,
  20. String? authorAssociation,
  21. String? bodyHtml,
  22. String? bodyText,
  23. String? commentsUrl,
  24. bool? draft,
  25. String? eventsUrl,
  26. String? labelsUrl,
  27. bool? locked,
  28. String? nodeId,
  29. GitHubApp? performedViaGithubApp,
  30. ReactionRollup? reactions,
  31. Repository? repository,
  32. String? repositoryUrl,
  33. String? stateReason,
  34. String? timelineUrl,
})

Implementation

Issue({
  this.id = 0,
  this.url = '',
  this.htmlUrl = '',
  this.number = 0,
  this.state = '',
  this.title = '',
  this.user,
  List<IssueLabel>? labels,
  this.assignee,
  this.assignees,
  this.milestone,
  this.commentsCount = 0,
  this.pullRequest,
  this.createdAt,
  this.closedAt,
  this.updatedAt,
  this.body = '',
  this.closedBy,

  // Properties from the Timeline API
  this.activeLockReason,
  this.authorAssociation,
  this.bodyHtml,
  this.bodyText,
  this.commentsUrl,
  this.draft,
  this.eventsUrl,
  this.labelsUrl,
  this.locked,
  this.nodeId,
  this.performedViaGithubApp,
  this.reactions,
  this.repository,
  this.repositoryUrl,
  this.stateReason,
  this.timelineUrl,
}) {
  if (labels != null) {
    this.labels = labels;
  }
}