CommentReportView constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const CommentReportView({
  1. required CommentReport commentReport,
  2. required Comment comment,
  3. required Post post,
  4. required CommunitySafe community,
  5. required PersonSafe creator,
  6. required PersonSafe commentCreator,
  7. required bool creatorBannedFromCommunity,
  8. VoteType? myVote,
  9. required CommentAggregates counts,
  10. PersonSafe? resolver,
  11. required String instanceHost,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake)
const factory CommentReportView({
  required CommentReport commentReport,
  required Comment comment,
  required Post post,
  required CommunitySafe community,
  required PersonSafe creator,
  required PersonSafe commentCreator,
  required bool creatorBannedFromCommunity,
  VoteType? myVote,
  required CommentAggregates counts,
  PersonSafe? resolver,
  required String instanceHost,
}) = _CommentReportView;