MastodonMediaConfiguration class

Media attachment limits (configuration.media_attachments).

Annotations

Constructors

MastodonMediaConfiguration({required List<String> supportedMimeTypes, int? descriptionLimit, int? imageSizeLimit, int? imageMatrixLimit, int? videoSizeLimit, int? videoFrameRateLimit, int? videoMatrixLimit})
const
MastodonMediaConfiguration.fromJson(Map<String, dynamic> json)
factory

Properties

descriptionLimit int?
Maximum character count for media alt text.
final
hashCode int
The hash code for this object.
no setterinherited
imageMatrixLimit int?
Maximum pixel count for images (width x height).
final
imageSizeLimit int?
Maximum file size for images (bytes).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedMimeTypes List<String>
List of accepted MIME types.
final
videoFrameRateLimit int?
Maximum frame rate for videos.
final
videoMatrixLimit int?
Maximum pixel count for videos (width x height).
final
videoSizeLimit int?
Maximum file size for videos (bytes).
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