CommentDTO constructor
CommentDTO({
- String? id,
- required String? postId,
- required String commentedBy,
- required String userId,
- required String userDispalyName,
- String? userImgUrl = "",
- String? tagTo,
- required DateTime commentedDate,
- required String comment,
- required List<
String> commentImgUrl, - required List<
CommentLike> commentLikeCounts, - required List<
SubCommentDTO> replies, - required List<
LikedUser> likesUsers,
Implementation
CommentDTO({
this.id,
required this.postId,
required this.commentedBy,
required this.userId,
required this.userDispalyName,
this.userImgUrl="",
this.tagTo,
required this.commentedDate,
required this.comment,
required this.commentImgUrl,
required this.commentLikeCounts,
required this.replies,
required this.likesUsers
});