CommentView constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const CommentView({
  1. required Comment comment,
  2. required PersonSafe creator,
  3. PersonSafe? recipient,
  4. required Post post,
  5. required CommunitySafe community,
  6. required CommentAggregates counts,
  7. required bool creatorBannedFromCommunity,
  8. required bool subscribed,
  9. required bool saved,
  10. required bool creatorBlocked,
  11. VoteType? myVote,
  12. required String instanceHost,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake)
const factory CommentView({
  required Comment comment,
  required PersonSafe creator,
  PersonSafe? recipient,
  required Post post,
  required CommunitySafe community,
  required CommentAggregates counts,
  required bool creatorBannedFromCommunity,
  required bool subscribed,
  required bool saved,
  required bool creatorBlocked,
  VoteType? myVote,
  required String instanceHost,
}) = _CommentView;