InboundDocument class

Inbound JSON:API document

Constructors

InboundDocument(Map json)

Properties

hasData → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
json → Map
Raw JSON object.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

asRelationship<R extends Relationship>() → R
asToMany() → ToMany
asToOne() → ToOne
dataAsCollection() → Iterable<Resource>
dataAsNewResource() → NewResource
dataAsResource() → Resource
dataAsResourceOrNull() → Resource?
errors() → Iterable<ErrorObject>
Errors (for an Error Document)
included() → Iterable<Resource>
Included resources
Top-level links object.
meta() → Map<String, Object?>
Top-level meta data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited