Post class
<p>This class creates a Post model.</p>
Constructors
Post ({required String sId, String? description, DateTime? createdAt, String? imageUrl, String? videoUrl, required User? creator, OrgInfo? organization, List<LikedBy>? likedBy, List<Comments>? comments})
Post.fromJson (Map<String, dynamic> json)
Creating a new Post instance from a map structure.
Properties
comments ↔ List<Comments>?
comments for post.
<span class="feature">read / write</span>
createdAt ↔ DateTime?
createdAt for post.
<span class="feature">read / write</span>
creator ↔ User?
creator for post.
<span class="feature">read / write</span>
description ↔ String?
description for post.
<span class="feature">read / write</span>
hashCode → int
The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>
imageUrl ↔ String?
imageUrl for post.
<span class="feature">read / write</span>
likedBy ↔ List<LikedBy>?
likedBy for post.
<span class="feature">read / write</span>
organization ↔ OrgInfo?
organization for post.
<span class="feature">read / write</span>
runtimeType → Type
A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>
sId ↔ String
unique identifier for post.
<span class="feature">read / write</span>
videoUrl ↔ String?
videoUrl for post.
<span class="feature">read / write</span>
Methods
getPostCreatedDuration() String
this is to get duration of post.
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>
toString() String
A string representation of this object.
<span class="feature">inherited</span>
Operators
operator ==(Object other) bool
The equality operator.
<span class="feature">inherited</span>