Instance class

Represents the software instance of Mastodon running on required this domain. https://docs.joinmastodon.org/entities/instance/

Annotations
  • @JsonSerializable()

Constructors

Instance({required Uri uri, required String title, required String description, required String email, required String version, required Uri? thumbnail, required dynamic urls, required InstanceStats stats, required dynamic languages, required Account? contactAccount, required String shortDescription, required bool registrations, required bool approvalRequired})
Instance.fromJson(Map<String, dynamic> json)
factory

Properties

approvalRequired bool
Whether registrations require moderator approval
final
contactAccount Account?
A user that can be contacted, as an alternative to email
final
description String
Admin-defined description of the Mastodon site
final
email String
An email that may be contacted for any inquiries
final
hashCode int
The hash code for this object.
no setterinherited
languages → dynamic
Primary langauges of the website and its staff
final
registrations bool
Whether registrations are enabled
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortDescription String
A shorter description defined by the admin
final
stats InstanceStats
See InstanceStats
final
thumbnail Uri?
Banner image for the website
final
title String
The title of the website
final
uri Uri
The domain name of the instance
final
urls → dynamic
URLs of interest for clients apps
final
version String
The version of Mastodon installed on the instance
final

Methods

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

Operators

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