Specifies how to sort query results. Attributes: field: Field to sort by direction: Sort direction (ascending or descending)
| Name | Type | Description | Notes |
|---|---|---|---|
| var_field | str | Field to sort by, supports dot notation for nested fields | |
| direction | SortDirection | Sort direction | [optional] |
from mixpeek.models.sort_option import SortOption
# TODO update the JSON string below
json = "{}"
# create an instance of SortOption from a JSON string
sort_option_instance = SortOption.from_json(json)
# print the JSON string representation of the object
print(SortOption.to_json())
# convert the object into a dict
sort_option_dict = sort_option_instance.to_dict()
# create an instance of SortOption from a dict
sort_option_from_dict = SortOption.from_dict(sort_option_dict)