MastodonOEmbed class

OEmbed metadata for Mastodon.

Corresponds to the response from /api/oembed.

Annotations

Constructors

MastodonOEmbed({required String type, required String version, required String title, required String authorName, required String authorUrl, required String providerName, required String providerUrl, required int cacheAge, required String html, required int width, int? height})
const
MastodonOEmbed.fromJson(Map<String, dynamic> json)
factory

Properties

authorName String
Display name of the author.
final
authorUrl String
Profile URL of the author.
final
cacheAge int
Recommended cache duration in seconds.
final
hashCode int
The hash code for this object.
no setterinherited
height int?
Height of the iframe in pixels. null if unspecified.
final
html String
HTML code for the embed iframe.
final
providerName String
Domain name of the instance.
final
providerUrl String
Base URL of the instance.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
Description title of the status.
final
type String
OEmbed type. Always "rich".
final
version String
OEmbed version. Always "1.0".
final
width int
Width of the iframe 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