V2Instance class

Annotations
  • @freezed

Constructors

V2Instance({required String domain, required String title, required String description, required InstanceUsage usage, required String sourceUrl, required String version, required List<Language> languages, Thumbnail? thumbnail, V2InstanceConfiguration? configuration, required InstanceRegistrations registrations, required InstanceContact contact, List<Rule>? rules})
const
factory
V2Instance.fromJson(Map<String, Object?> json)
factory

Properties

configuration V2InstanceConfiguration?
Configured values and limits for this website.
no setterinherited
contact InstanceContact
Hints related to contacting a representative of the website.
no setterinherited
copyWith → $V2InstanceCopyWith<V2Instance>
no setterinherited
description String
Admin-defined description of the Mastodon site.
no setterinherited
domain String
The domain name of the instance.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
languages List<Language>
Primary languages of the website and its staff.
no setterinherited
registrations InstanceRegistrations
Information about registering for this website.
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
sourceUrl String
The URL for the source code of the software running on this instance, in keeping with AGPL license requirements.
no setterinherited
thumbnail Thumbnail?
Links to scaled resolution images, for high DPI screens.
no setterinherited
title String
The title of the website.
no setterinherited
usage InstanceUsage
Usage data for this 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