Bounding box polygon.
| Name | Type | Description | Notes |
|---|---|---|---|
| x | int | The x-coordinate of the top-left corner of the bounding box. | |
| y | int | The y-coordinate of the top-left corner of the bounding box. | |
| width | int | The width of the bounding box. | |
| height | int | The height of the bounding box. |
from ksapi.models.polygon import Polygon
# TODO update the JSON string below
json = "{}"
# create an instance of Polygon from a JSON string
polygon_instance = Polygon.from_json(json)
# print the JSON string representation of the object
print(Polygon.to_json())
# convert the object into a dict
polygon_dict = polygon_instance.to_dict()
# create an instance of Polygon from a dict
polygon_from_dict = Polygon.from_dict(polygon_dict)