InboundDocument class Null safety

Inbound JSON:API document

Constructors

InboundDocument(Map json)

Properties

hasData bool
read-only
hashCode int
The hash code for this object.
read-onlyinherited
json Map
Raw JSON object.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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 non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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