RecordProxy

data class RecordProxy<R : Resource>(val data: R, val meta: Map<String, Any>, val raw: JsonApiSingleResponse)(source)

A wrapper for a single resource.

Parameters

R

The type of the resource.

data

The data of the resource.

meta

The meta of the resource.

raw

The raw JSON:API response as a map.

Constructors

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

Properties

Link copied to clipboard
val data: R
Link copied to clipboard
Link copied to clipboard