BanFromCommunity constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const BanFromCommunity({
  1. required int communityId,
  2. required int personId,
  3. required bool ban,
  4. bool? removeData,
  5. String? reason,
  6. int? expires,
  7. required String auth,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const factory BanFromCommunity({
  required int communityId,
  required int personId,
  required bool ban,
  bool? removeData,
  String? reason,
  int? expires,
  required String auth,
}) = _BanFromCommunity;