toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'postID': postID,
'content': content,
'postDate': postDate,
'postDateCountdown': postDateCountdown,
'sharedDevice': sharedDevice,
'likesCount': likesCount,
'commentsCount': commentsCount,
'isLikeme': isLikeme,
'iscommentMe': iscommentMe,
'owner': owner.toJson(),
'media': media.map((m) => m.toJson()).toList(),
'firstthreecomment': firstthreecomment?.map((c) => c.toJson()).toList(),
'comments': comments?.map((c) => c.toJson()).toList(),
'firstthreelike': firstthreelike?.map((l) => l.toJson()).toList(),
'likers': likers?.map((l) => l.toJson()).toList(),
'location': location,
};
}