ModBanFromCommunity constructor
- @ForceUtcDateTime()
- @ForceUtcDateTimeNullable()
- @JsonSerializable(fieldRename: FieldRename.snake)
const
ModBanFromCommunity(
{ - required int id,
- required int modPersonId,
- required int otherPersonId,
- String? reason,
- bool? banned,
- DateTime? expires,
- @JsonKey(name: 'when_') required DateTime when,
- 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;