toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'video_url': videoUrl,
'thumbnail_url': thumbnailUrl,
'owner': owner.toJson(),
'description': description,
'created_at': createdAt.toIso8601String(),
'like_count': likeCount,
'comment_count': commentCount,
'share_count': shareCount,
};
}