APIComment constructor

APIComment({
  1. required String id,
  2. bool? aiDeterminedSpam,
  3. String? anonUserId,
  4. required bool approved,
  5. String? avatarSrc,
  6. List<CommentUserBadgeInfo>? badges = const [],
  7. required String comment,
  8. required String commentHTML,
  9. String? commenterEmail,
  10. String? commenterLink,
  11. required String commenterName,
  12. required double? date,
  13. String? displayLabel,
  14. String? domain,
  15. String? externalId,
  16. String? externalParentId,
  17. DateTime? expireAt,
  18. List<String> feedbackIds = const [],
  19. int? flagCount,
  20. int? fromProductId,
  21. bool? hasCode,
  22. bool? hasImages,
  23. bool? hasLinks,
  24. List<CommentUserHashTagInfo> hashTags = const [],
  25. bool? isByAdmin,
  26. bool? isByModerator,
  27. bool? isDeleted,
  28. bool? isDeletedUser,
  29. bool? isPinned,
  30. bool? isLocked,
  31. bool? isSpam,
  32. int? localDateHours,
  33. String? localDateString,
  34. required String? locale,
  35. List<CommentUserMentionInfo> mentions = const [],
  36. APICommentBaseMeta? meta,
  37. List<String>? moderationGroupIds = const [],
  38. bool? notificationSentForParent,
  39. bool? notificationSentForParentTenant,
  40. String? pageTitle,
  41. String? parentId,
  42. double? rating,
  43. bool? reviewed,
  44. required String tenantId,
  45. required String url,
  46. required String urlId,
  47. String? urlIdRaw,
  48. String? userId,
  49. required bool verified,
  50. DateTime? verifiedDate,
  51. int? votes,
  52. int? votesDown,
  53. int? votesUp,
})

Returns a new APIComment instance.

Implementation

APIComment({
  required this.id,
  this.aiDeterminedSpam,
  this.anonUserId,
  required this.approved,
  this.avatarSrc,
  this.badges = const [],
  required this.comment,
  required this.commentHTML,
  this.commenterEmail,
  this.commenterLink,
  required this.commenterName,
  required this.date,
  this.displayLabel,
  this.domain,
  this.externalId,
  this.externalParentId,
  this.expireAt,
  this.feedbackIds = const [],
  this.flagCount,
  this.fromProductId,
  this.hasCode,
  this.hasImages,
  this.hasLinks,
  this.hashTags = const [],
  this.isByAdmin,
  this.isByModerator,
  this.isDeleted,
  this.isDeletedUser,
  this.isPinned,
  this.isLocked,
  this.isSpam,
  this.localDateHours,
  this.localDateString,
  required this.locale,
  this.mentions = const [],
  this.meta,
  this.moderationGroupIds = const [],
  this.notificationSentForParent,
  this.notificationSentForParentTenant,
  this.pageTitle,
  this.parentId,
  this.rating,
  this.reviewed,
  required this.tenantId,
  required this.url,
  required this.urlId,
  this.urlIdRaw,
  this.userId,
  required this.verified,
  this.verifiedDate,
  this.votes,
  this.votesDown,
  this.votesUp,
});