| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | Reddit post id (`t3_*` fullname). | |
| title | str | ||
| url | str | Permalink (or the linked URL for link posts). | |
| text | str | Markdown body for self/text posts; empty otherwise. | |
| domain | str | ||
| created_at | str | Source ISO timestamp. | |
| is_nsfw | bool | ||
| is_spoiler | bool | ||
| is_locked | bool | ||
| is_stickied | bool | ||
| subreddit | RedditPostSubreddit |
from unifapi.models.reddit_post import RedditPost
# TODO update the JSON string below
json = "{}"
# create an instance of RedditPost from a JSON string
reddit_post_instance = RedditPost.from_json(json)
# print the JSON string representation of the object
print(RedditPost.to_json())
# convert the object into a dict
reddit_post_dict = reddit_post_instance.to_dict()
# create an instance of RedditPost from a dict
reddit_post_from_dict = RedditPost.from_dict(reddit_post_dict)