InstanceRegistrations class
- Annotations
-
- @freezed
Constructors
- InstanceRegistrations({@JsonKey(name: 'enabled') required bool isEnabled, @JsonKey(name: 'approval_required') required bool isApprovalRequired, @JsonKey(name: 'message') String? closedMessage})
-
constfactory
-
InstanceRegistrations.fromJson(Map<
String, Object?> json) -
factory
Properties
- closedMessage → String?
-
A custom message to be shown when registrations are closed.
no setterinherited
-
copyWith
→ $InstanceRegistrationsCopyWith<
InstanceRegistrations> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isApprovalRequired → bool
-
Whether registrations require moderator approval.
no setterinherited
- isEnabled → bool
-
Whether registrations are enabled.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited