MastodonInstanceConfiguration class
Instance configuration and limits (configuration).
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonInstanceConfiguration({required MastodonInstanceUrls urls, MastodonStatusesConfiguration? statuses, MastodonMediaConfiguration? mediaAttachments, MastodonPollsConfiguration? polls, MastodonAccountsConfiguration? accounts, MastodonTimelinesAccess? timelinesAccess, bool? translationEnabled, bool? limitedFederation, String? vapidPublicKey})
-
const
-
MastodonInstanceConfiguration.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accounts → MastodonAccountsConfiguration?
-
Account limits.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- limitedFederation → bool?
-
Whether federation is limited (Mastodon 4.3+).
final
- mediaAttachments → MastodonMediaConfiguration?
-
Media attachment limits.
final
- polls → MastodonPollsConfiguration?
-
Poll limits.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statuses → MastodonStatusesConfiguration?
-
Status posting limits.
final
- timelinesAccess → MastodonTimelinesAccess?
-
Timeline access settings. Both timelines are considered public if null.
final
- translationEnabled → bool?
-
Whether the translation feature is enabled.
final
- urls → MastodonInstanceUrls
-
URL settings (including streaming URL).
final
- vapidPublicKey → String?
-
VAPID public key (for Web Push notifications).
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