PaginatedResponse
open class PaginatedResponse<T: Codable>: Codable
PaginationResponse
wraps around a list endpoint response, to give context to the user about the pagination information
-
Holds the real type of T ([Product] / Product / Brand / Collection) etc
Declaration
Swift
public typealias ContainedType = T
-
The data returned for this response
Declaration
Swift
public var data: ContainedType?
-
The external links for this response
Declaration
Swift
public var links: [String: String?]?
-
The meta information for this response
Declaration
Swift
public var meta: PaginationMeta?