ModBanFromCommunity constructor

const ModBanFromCommunity({
  1. required int id,
  2. @JsonKey.new(name: 'mod_person_id') int? modPersonId,
  3. @JsonKey.new(name: 'other_person_id') int? otherPersonId,
  4. @JsonKey.new(name: 'community_id') int? communityId,
  5. String? reason,
  6. required bool banned,
  7. DateTime? expires,
  8. @JsonKey.new(name: 'when_') required DateTime when,
})

Implementation

const factory ModBanFromCommunity({
  required int id,
  @JsonKey(name: 'mod_person_id') int? modPersonId,
  @JsonKey(name: 'other_person_id') int? otherPersonId,
  @JsonKey(name: 'community_id') int? communityId,
  String? reason,
  required bool banned,
  DateTime? expires,
  @JsonKey(name: 'when_') required DateTime when,
}) = _ModBanFromCommunity;