Modlog constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const Modlog({
  1. required List<ModRemovePostView> removedPosts,
  2. required List<ModLockPostView> lockedPosts,
  3. required List<ModStickyPostView> stickiedPosts,
  4. required List<ModRemoveCommentView> removedComments,
  5. required List<ModRemoveCommunityView> removedCommunities,
  6. required List<ModBanFromCommunityView> bannedFromCommunity,
  7. required List<ModBanView> banned,
  8. required List<ModAddCommunityView> addedToCommunity,
  9. required List<ModTransferCommunityView> transferredToCommunity,
  10. required List<ModAddView> added,
  11. required String instanceHost,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake)
const factory Modlog({
  required List<ModRemovePostView> removedPosts,
  required List<ModLockPostView> lockedPosts,
  required List<ModStickyPostView> stickiedPosts,
  required List<ModRemoveCommentView> removedComments,
  required List<ModRemoveCommunityView> removedCommunities,
  required List<ModBanFromCommunityView> bannedFromCommunity,
  required List<ModBanView> banned,
  required List<ModAddCommunityView> addedToCommunity,
  required List<ModTransferCommunityView> transferredToCommunity,
  required List<ModAddView> added,
  required String instanceHost,
}) = _Modlog;