Official Hacker News item. Stories, comments, jobs, polls, and poll options share this shape.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ||
| deleted | bool | [optional] | |
| type | HackerNewsItemType | [optional] | |
| by | str | [optional] | |
| time | int | Unix epoch seconds | [optional] |
| text | str | HTML text for comments, stories, polls, and jobs. | [optional] |
| dead | bool | [optional] | |
| parent | int | [optional] | |
| poll | int | [optional] | |
| kids | List[int] | [optional] | |
| url | str | [optional] | |
| score | int | [optional] | |
| title | str | HTML title for stories, polls, and jobs. | [optional] |
| parts | List[int] | [optional] | |
| descendants | int | [optional] |
from unifapi.models.hacker_news_item import HackerNewsItem
# TODO update the JSON string below
json = "{}"
# create an instance of HackerNewsItem from a JSON string
hacker_news_item_instance = HackerNewsItem.from_json(json)
# print the JSON string representation of the object
print(HackerNewsItem.to_json())
# convert the object into a dict
hacker_news_item_dict = hacker_news_item_instance.to_dict()
# create an instance of HackerNewsItem from a dict
hacker_news_item_from_dict = HackerNewsItem.from_dict(hacker_news_item_dict)