ModBanFromCommunity constructor

  1. @ForceUtcDateTime()
  2. @ForceUtcDateTimeNullable()
  3. @JsonSerializable(fieldRename: FieldRename.snake)
const ModBanFromCommunity({
  1. required int id,
  2. required int modPersonId,
  3. required int otherPersonId,
  4. required int communityId,
  5. String? reason,
  6. bool? banned,
  7. DateTime? expires,
  8. @JsonKey(name: 'when_') required DateTime when,
  9. required String instanceHost,
})

Implementation

@ForceUtcDateTime()
@ForceUtcDateTimeNullable()
@JsonSerializable(fieldRename: FieldRename.snake)
const factory ModBanFromCommunity({
  required int id,
  required int modPersonId,
  required int otherPersonId,
  required int communityId,
  String? reason,
  bool? banned,
  DateTime? expires,
  @JsonKey(name: 'when_') required DateTime when,
  required String instanceHost,
}) = _ModBanFromCommunity;