PersonMentionView constructor

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

Implementation

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