JsonApiResource

class JsonApiResource(response: Map<String, Any>) : Map<String, Any?> (source)

A JSON:API resource

Parameters

response

The response map.

Constructors

Link copied to clipboard
constructor(response: Map<String, Any>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The attributes of the resource.

Link copied to clipboard
open override val entries: Set<Map.Entry<String, Any?>>
Link copied to clipboard
val id: String

The ID of the resource.

Link copied to clipboard
open override val keys: Set<String>
Link copied to clipboard

The links of the resource.

Link copied to clipboard
val meta: Map<String, Any?>

The meta of the resource.

Link copied to clipboard

The relationships of the resource.

Link copied to clipboard
open override val size: Int
Link copied to clipboard

The type of the resource.

Link copied to clipboard
open override val values: Collection<Any?>

Functions

Link copied to clipboard
open override fun containsKey(key: String): Boolean
Link copied to clipboard
open override fun containsValue(value: Any?): Boolean
Link copied to clipboard
open operator override fun get(key: String): Any?
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
fun Map<*, *>.toJsonElement(): JsonElement

Converts Map<*, *> to a JsonElement.