PaginatedResponse

open class PaginatedResponse<T> : Codable where T : Decodable, T : Encodable

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: T?
  • 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?