CollectionProxy

data class CollectionProxy<R : Resource>(val data: List<R>, val meta: Map<String, Any>, val raw: JsonApiCollectionResponse)(source)

A wrapper for a collection of resources.

Parameters

R

The type of the resource.

data

The data of the collection.

meta

The meta of the collection.

raw

The raw JSON:API response as a map.

Constructors

Link copied to clipboard
constructor(data: List<R>, meta: Map<String, Any>, raw: JsonApiCollectionResponse)

Properties

Link copied to clipboard
val data: List<R>
Link copied to clipboard
Link copied to clipboard