JsonApiResource

data class JsonApiResource(val id: String, val type: String, val attributes: Map<String, <Error class: unknown class>> = emptyMap(), val relationships: Map<String, JsonApiRelationship> = emptyMap(), val links: JsonApiLinks? = null, val meta: Map<String, <Error class: unknown class>> = emptyMap())

A JSON:API resource.

Constructors

Link copied to clipboard
constructor(id: String, type: String, attributes: Map<String, <Error class: unknown class>> = emptyMap(), relationships: Map<String, JsonApiRelationship> = emptyMap(), links: JsonApiLinks? = null, meta: Map<String, <Error class: unknown class>> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val attributes: Map<String, <Error class: unknown class>>

The attributes of the resource.

Link copied to clipboard
val id: String

The ID of the resource.

Link copied to clipboard
val links: JsonApiLinks? = null

The links of the resource.

Link copied to clipboard
val meta: Map<String, <Error class: unknown class>>

The meta of the resource.

Link copied to clipboard

The relationships of the resource.

Link copied to clipboard

The type of the resource.