MastodonScheduledStatusParams class
Parameters of a scheduled status.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonScheduledStatusParams({required String text, MastodonScheduledStatusPoll? poll, List<
String> ? mediaIds, bool? sensitive, String? spoilerText, String? visibility, String? inReplyToId, String? language, String? idempotency}) -
Creates a MastodonScheduledStatusParams with the given fields.
const
-
MastodonScheduledStatusParams.fromJson(Map<
String, dynamic> json) -
Creates a MastodonScheduledStatusParams from a JSON map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- idempotency → String?
-
Idempotency key.
final
- inReplyToId → String?
-
ID of the status being replied to.
final
- language → String?
-
Posting language (ISO 639-1 code).
final
-
mediaIds
→ List<
String> ? -
Array of MediaAttachment IDs to attach.
final
- poll → MastodonScheduledStatusPoll?
-
Poll parameters (
nullif no poll).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sensitive → bool?
-
Whether to mark as sensitive (content warning).
final
- spoilerText → String?
-
Content warning text.
final
- text → String
-
Body text of the status.
final
- visibility → String?
-
Visibility (
public/unlisted/private/direct).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