ModRemoveCommunity constructor

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

Implementation

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