Pagination

class pydelfini.delfini_core.models.pagination.Pagination(items_per_page, next_page_url, total_items)[source]

Bases: object

Pagination model

Parameters:
  • items_per_page (int)

  • next_page_url (None | str)

  • total_items (int)

items_per_page
Type:

int

next_page_url
Type:

Union[None, str]

total_items
Type:

int

Attributes

items_per_page

next_page_url

total_items

classmethod from_dict(src_dict)[source]

Create an instance of Pagination from a dict

Parameters:

src_dict (Dict[str, Any])

Return type:

T

to_dict()[source]

Convert to a dict

Return type:

Dict[str, Any]