MastodonInstanceRegistrations class

Registration settings for the instance (registrations).

Annotations

Constructors

MastodonInstanceRegistrations({required bool enabled, required bool approvalRequired, String? message, String? url, int? minAge, bool? reasonRequired})
const
MastodonInstanceRegistrations.fromJson(Map<String, dynamic> json)
factory

Properties

approvalRequired bool
Whether admin approval is required.
final
enabled bool
Whether new registrations are accepted.
final
hashCode int
The hash code for this object.
no setterinherited
message String?
Message displayed when registration is disabled.
final
minAge int?
Minimum age required to register (Mastodon 4.4+).
final
reasonRequired bool?
Whether a reason is required when approval is needed (Mastodon 4.4+).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
Custom registration URL for external authentication (SSO, etc.) (Mastodon 4.2+).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited