CommentView constructor
- @JsonSerializable(fieldRename: FieldRename.snake)
- 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,
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;