DataSet

data class DataSet<T>(val pagination: PaginationInfo, val records: List<T>)

DataSet represents a paginated set of data returned from the API.

This class models the structure of the data block in typical API responses, containing a list of records along with pagination metadata.

Constructors

Link copied to clipboard
constructor(pagination: PaginationInfo, records: List<T>)

Properties

Link copied to clipboard

PaginationInfo The pagination metadata.

Link copied to clipboard
val records: List<T>

List<T> The list of items returned in the current page.