PostReportView constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const PostReportView({
  1. required PostReport postReport,
  2. required Post post,
  3. required CommunitySafe community,
  4. required PersonSafe creator,
  5. required PersonSafe postCreator,
  6. required bool creatorBannedFromCommunity,
  7. VoteType? myVote,
  8. required PostAggregates counts,
  9. PersonSafe? resolver,
  10. 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;