MastodonAdminTrendsLink class

Admin-level trending link.

Includes all fields from the standard MastodonTrendsLink plus admin-specific id and requiresReview.

Annotations

Constructors

MastodonAdminTrendsLink({required String id, required String url, required String title, required String description, required MastodonPreviewCardType type, required String authorName, required String authorUrl, required String providerName, required String providerUrl, required String html, required int width, required int height, required String embedUrl, required List<MastodonPreviewCardAuthor> authors, required List<MastodonTrendsLinkHistory> history, String? image, String? blurhash, bool? requiresReview})
const
MastodonAdminTrendsLink.fromJson(Map<String, dynamic> json)
factory

Properties

authorName String
Name of the content author.
final
authors List<MastodonPreviewCardAuthor>
List of content authors (Mastodon 4.3.0+).
final
authorUrl String
URL of the content author.
final
blurhash String?
Blurhash string for the thumbnail.
final
description String
Description of the preview.
final
embedUrl String
URL for embedding photos.
final
hashCode int
The hash code for this object.
no setterinherited
height int
Height of the preview in pixels.
final
history List<MastodonTrendsLinkHistory>
History of daily usage statistics.
final
html String
HTML for generating the preview.
final
id String
Database ID of the trending link.
final
image String?
URL of the preview thumbnail.
final
providerName String
Name of the content provider.
final
providerUrl String
URL of the content provider.
final
requiresReview bool?
Whether moderator review is required.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
Title of the link target.
final
type MastodonPreviewCardType
Type of the preview card.
final
url String
URL of the link target.
final
width int
Width of the preview in pixels.
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