SocialPost class
Post projection returned by Social feed, bookmarks and hashtag endpoints.
This is intentionally separate from mebabl_content.Post: the Social API
also returns the post visibility value and uses its own attachment DTO.
Constructors
-
SocialPost({required String id, required String ownerId, required DateTime createdAt, required String visibility, required List<
SocialPostAttachment> attachments, String? text}) -
const
-
SocialPost.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
attachments
→ List<
SocialPostAttachment> -
final
- createdAt → DateTime
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- ownerId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
final
- visibility → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited