{@link Notification Notification} is a custom extension that used to store notification information for inner use, it's on-site notification.
Supports the following operations:
- Marked as read: {@link NotificationSpec#setUnread(boolean) NotificationSpec#setUnread(boolean)}
- Get the last read time: {@link NotificationSpec#getLastReadAt NotificationSpec#getLastReadAt()}
- Filter by recipient: {@link NotificationSpec#getRecipient NotificationSpec#getRecipient()}
| Name | Type | Description | Notes |
|---|---|---|---|
| api_version | str | ||
| kind | str | ||
| metadata | Metadata | ||
| spec | NotificationSpec | [optional] |
from halo_client.models.notification import Notification
# TODO update the JSON string below
json = "{}"
# create an instance of Notification from a JSON string
notification_instance = Notification.from_json(json)
# print the JSON string representation of the object
print(Notification.to_json())
# convert the object into a dict
notification_dict = notification_instance.to_dict()
# create an instance of Notification from a dict
notification_from_dict = Notification.from_dict(notification_dict)