MastodonMediaAttachment class
Media attachment on Mastodon.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonMediaAttachment({required String id, required MastodonMediaType type, String? url, String? previewUrl, String? remoteUrl, String? description, String? blurhash})
-
const
-
MastodonMediaAttachment.fromJson(Map<
String, dynamic> json) -
factory
Properties
- blurhash → String?
-
Blurhash string.
final
- description → String?
-
Alt text (for screen readers).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Internal ID of the media.
final
- previewUrl → String?
-
URL of the thumbnail image.
final
- remoteUrl → String?
-
Original URL on the remote instance.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → MastodonMediaType
-
Type of the media.
final
- url → String?
-
URL of the media. May be null during asynchronous processing.
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