View Source JSONAPIPlug.Document.ResourceObject (jsonapi_plug v2.0.0)
JSON:API Resource Object
https://jsonapi.org/format/#resource_object-resource-objects
Summary
Types
@type id() :: String.t()
@type t() :: %JSONAPIPlug.Document.ResourceObject{ attributes: %{required(String.t()) => JSONAPIPlug.Document.value()}, id: id() | nil, lid: id() | nil, links: JSONAPIPlug.Document.links() | nil, meta: JSONAPIPlug.Document.meta() | nil, relationships: %{ required(String.t()) => [JSONAPIPlug.Document.RelationshipObject.t()] }, type: type() }
@type type() :: String.t()
Functions
@spec deserialize(JSONAPIPlug.Document.payload()) :: t() | no_return()