Announcement class
Constructors
-
Announcement({required String id, required String content, @JsonKey(name: 'published') bool? isPublished, @JsonKey(name: 'all_day') required bool isAllDay, @JsonKey(name: 'read') bool? isRead, DateTime? startsAt, DateTime? endsAt, required DateTime publishedAt, required DateTime updatedAt, required List<AnnouncementAccount> mentions, required List<AnnouncementStatus> statuses, required List<Tag> tags, required List<Emoji> emojis, required List<EmojiReaction> reactions})
-
const
factory
-
Announcement.fromJson(Map<String, Object?> json)
-
factory
Properties
-
content
→ String
-
The text of the announcement.
no setterinherited
-
copyWith
→ $AnnouncementCopyWith<Announcement>
-
no setterinherited
-
emojis
→ List<Emoji>
-
Custom emoji used in the announcement text.
no setterinherited
-
endsAt
→ DateTime?
-
When the announcement will end.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
id
→ String
-
The ID of the announcement in the database.
no setterinherited
-
isAllDay
→ bool
-
Whether the announcement should start and end on dates only instead of
date times.
no setterinherited
-
isPublished
→ bool?
-
Whether the announcement is currently active.
no setterinherited
-
isRead
→ bool?
-
Whether the announcement has been read by the current user.
no setterinherited
-
mentions
→ List<AnnouncementAccount>
-
Accounts mentioned in the announcement text.
no setterinherited
-
publishedAt
→ DateTime
-
When the announcement was published.
no setterinherited
-
reactions
→ List<EmojiReaction>
-
Emoji reactions attached to the announcement.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
startsAt
→ DateTime?
-
When the announcement will start.
no setterinherited
-
statuses
→ List<AnnouncementStatus>
-
Statuses linked in the announcement text.
no setterinherited
-
tags
→ List<Tag>
-
Tags linked in the announcement text.
no setterinherited
-
updatedAt
→ DateTime
-
When the announcement was last updated.
no setterinherited