RecordProxy

data class RecordProxy<R>(val data: R, val meta: Map<String, Any>, val raw: JsonApiSingleResponse, val error: JsonApiException? = null)

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, error: JsonApiException? = null)

Properties

Link copied to clipboard
val data: R
Link copied to clipboard
val error: JsonApiException? = null
Link copied to clipboard
Link copied to clipboard