def METHOD_NAME(comment: Comment) -> dict:
    return {
        "id": str(comment.id),
        "author_id": str(comment.author_id),
        "post_id": str(comment.post_id),
        "post_title": comment.post.title,
        "reply_to_id": str(comment.reply_to_id) if comment.reply_to else None,
        "title": comment.title,
        "text": comment.text,
        "url": comment.url,
        "metadata": comment.metadata,
        "created_at": comment.created_at.isoformat(),
        "updated_at": comment.updated_at.isoformat(),
        "upvotes": comment.upvotes,
        "is_visible": comment.is_visible,
        "is_deleted": comment.is_deleted,
        "is_pinned": comment.is_pinned,
    }