PostReportView constructor
- @JsonSerializable(fieldRename: FieldRename.snake)
- required PostReport postReport,
- required Post post,
- required CommunitySafe community,
- required PersonSafe creator,
- required PersonSafe postCreator,
- required bool creatorBannedFromCommunity,
- VoteType? myVote,
- required PostAggregates counts,
- PersonSafe? resolver,
- required String instanceHost,
Implementation
@JsonSerializable(fieldRename: FieldRename.snake)
const factory PostReportView({
required PostReport postReport,
required Post post,
required CommunitySafe community,
required PersonSafe creator,
required PersonSafe postCreator,
required bool creatorBannedFromCommunity,
VoteType? myVote,
required PostAggregates counts,
PersonSafe? resolver,
required String instanceHost,
}) = _PostReportView;