MastodonTranslation class
Translation result of a status.
POST /api/v1/statuses/:id/translate
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonTranslation({required String content, required String spoilerText, required String language, required String detectedSourceLanguage, required String provider, required List<
MastodonTranslationAttachment> mediaAttachments, MastodonTranslationPoll? poll}) -
const
-
MastodonTranslation.fromJson(Map<
String, dynamic> json) -
factory
Properties
- content → String
-
Translated body text of the status (HTML format).
final
- detectedSourceLanguage → String
-
Source language code auto-detected by the translation provider.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String
-
Target language code of the translation.
final
-
mediaAttachments
→ List<
MastodonTranslationAttachment> -
List of translated media descriptions.
final
- poll → MastodonTranslationPoll?
-
Translated poll.
nullif no poll.final - provider → String
-
Name of the translation service.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spoilerText → String
-
Translated content warning text.
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