MastodonInstance class
Mastodon instance information.
Corresponds to the response from /api/v2/instance.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonInstance({required String domain, required String title, required String version, required MastodonInstanceConfiguration configuration, required List<
MastodonInstanceRule> rules, String? sourceUrl, String? description, List<MastodonInstanceIcon> ? icon, MastodonInstanceThumbnail? thumbnail, MastodonInstanceUsage? usage, MastodonInstanceContact? contact, MastodonInstanceRegistrations? registrations, List<String> ? languages, int? apiVersionMastodon}) -
const
-
MastodonInstance.fromJson(Map<
String, dynamic> json) -
factory
Properties
- apiVersionMastodon → int?
-
Mastodon API version number (
api_versions.mastodon).final - configuration → MastodonInstanceConfiguration
-
Configuration and limits.
final
- contact → MastodonInstanceContact?
-
Contact information (admin email and account).
final
- description → String?
-
Description of the instance (HTML format).
final
- domain → String
-
Domain name of the instance.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
icon
→ List<
MastodonInstanceIcon> ? -
List of instance icon images (Mastodon 4.3+).
final
-
languages
→ List<
String> ? -
List of supported language codes.
final
- registrations → MastodonInstanceRegistrations?
-
Registration settings.
final
-
rules
→ List<
MastodonInstanceRule> -
List of instance rules.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceUrl → String?
-
URL of the source code repository. Can be used for fork detection.
final
- thumbnail → MastodonInstanceThumbnail?
-
Thumbnail image of the instance.
final
- title → String
-
Title of the instance.
final
- usage → MastodonInstanceUsage?
-
Usage statistics of the instance.
final
- version → String
-
Mastodon version string (e.g.
4.3.0).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