MastodonInstanceV1 class
Mastodon instance information in v1 format.
Corresponds to the response from /api/v1/instance.
Deprecated: Use MastodonInstance (v2) for Mastodon 4.0.0 and later.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonInstanceV1({required String uri, required String title, required String version, required List<
MastodonInstanceRule> rules, String? shortDescription, String? description, String? email, MastodonInstanceV1Urls? urls, MastodonInstanceV1Stats? stats, String? thumbnail, List<String> ? languages, required bool registrations, required bool approvalRequired, required bool invitesEnabled, MastodonInstanceV1Configuration? configuration, MastodonAccount? contactAccount}) -
const
-
MastodonInstanceV1.fromJson(Map<
String, dynamic> json) -
factory
Properties
- approvalRequired → bool
-
Whether admin approval is required for registration.
final
- configuration → MastodonInstanceV1Configuration?
-
Server configuration and limits (Mastodon 3.4.2+).
final
- contactAccount → MastodonAccount?
-
Administrator account information.
final
- description → String?
-
Detailed description of the server.
final
- email → String?
-
Contact email address of the administrator.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invitesEnabled → bool
-
Whether invites are enabled (Mastodon 3.1.4+).
final
-
languages
→ List<
String> ? -
List of supported language codes.
final
- registrations → bool
-
Whether new registrations are accepted.
final
-
rules
→ List<
MastodonInstanceRule> -
Server rules (Mastodon 3.4.0+).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortDescription → String?
-
Short description of the server.
final
- stats → MastodonInstanceV1Stats?
-
Instance statistics.
final
- thumbnail → String?
-
Thumbnail image URL of the server.
final
- title → String
-
Name of the server.
final
- uri → String
-
Domain of the server.
final
- urls → MastodonInstanceV1Urls?
-
URL settings (including streaming API URL).
final
- version → String
-
Mastodon version string.
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