Instance class
- Annotations
-
- @freezed
Constructors
-
Instance({required String uri, required String title, required String shortDescription, required String email, required String version, required List<
Language> languages, @JsonKey(name: 'stats') required InstanceStatistics statistics, String? thumbnail, @JsonKey(name: 'registrations') required bool isRegistrationsEnabled, @JsonKey(name: 'approval_required') required bool isApprovalRequired, @JsonKey(name: 'invites_enabled') required bool isInvitesEnabled, InstanceConfiguration? configuration, Account? contactAccount, List<Rule> ? rules}) -
constfactory
-
Instance.fromJson(Map<
String, Object?> json) -
factory
Properties
- configuration → InstanceConfiguration?
-
Configured values and limits for this website.
no setterinherited
- contactAccount → Account?
-
A user that can be contacted, as an alternative to email.
no setterinherited
-
copyWith
→ $InstanceCopyWith<
Instance> -
no setterinherited
- email → String
-
An email that may be contacted for any inquiries.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isApprovalRequired → bool
-
Whether registrations require moderator approval.
no setterinherited
- isInvitesEnabled → bool
-
Whether invites are enabled.
no setterinherited
- isRegistrationsEnabled → bool
-
Whether registrations are enabled.
no setterinherited
-
languages
→ List<
Language> -
Primary languages of the website and its staff.
no setterinherited
-
rules
→ List<
Rule> ? -
An itemized list of rules for this website.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortDescription → String
-
A shorter description defined by the admin.
no setterinherited
- statistics → InstanceStatistics
-
Statistics about how much information the instance contains.
no setterinherited
- thumbnail → String?
-
Banner image for the website.
no setterinherited
- title → String
-
The title of the website.
no setterinherited
- uri → String
-
The domain name of the instance.
no setterinherited
- version → String
-
The version of Mastodon installed on the instance.
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