ModBanFromCommunityView constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const ModBanFromCommunityView({
  1. required ModBanFromCommunity modBanFromCommunity,
  2. required PersonSafe moderator,
  3. required CommunitySafe community,
  4. required PersonSafe bannedPerson,
  5. required String instanceHost,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake)
const factory ModBanFromCommunityView({
  required ModBanFromCommunity modBanFromCommunity,
  required PersonSafe moderator,
  required CommunitySafe community,
  required PersonSafe bannedPerson,
  required String instanceHost,
}) = _ModBanFromCommunityView;