CreateSite constructor
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const
CreateSite(
{ - required String name,
- String? description,
- String? icon,
- String? banner,
- bool? enableDownvotes,
- bool? openRegistration,
- bool? enableNsfw,
- bool? requireEmailVerification,
- bool? requireApplication,
- String? applicationQuestion,
- bool? privateInstance,
- required String auth,
- String? defaultTheme,
})
Implementation
@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const factory CreateSite({
required 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,
}) = _CreateSite;