EditSite constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const EditSite({
  1. String? name,
  2. String? sidebar,
  3. String? description,
  4. String? icon,
  5. String? banner,
  6. bool? enableDownvotes,
  7. bool? openRegistration,
  8. bool? enableNsfw,
  9. bool? communityCreationAdminOnly,
  10. bool? requireEmailVerification,
  11. bool? requireApplication,
  12. String? applicationQuestion,
  13. bool? privateInstance,
  14. required String auth,
  15. String? defaultTheme,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const factory EditSite({
  String? name,
  String? sidebar,
  String? description,
  String? icon,
  String? banner,
  bool? enableDownvotes,
  bool? openRegistration,
  bool? enableNsfw,
  bool? communityCreationAdminOnly,
  bool? requireEmailVerification,
  bool? requireApplication,
  String? applicationQuestion,
  bool? privateInstance,
  required String auth,
  String? defaultTheme,
}) = _EditSite;