DataDocument class

A Document with top-level primary data

Inheritance

Constructors

DataDocument.fromIdentifier(Identifier identifier, { Map<String, dynamic> meta, Api api, Link self, List<Resource> included: const [] })
DataDocument.fromIdentifierList(List<Identifier> identifiers, { Map<String, dynamic> meta, Api api, Link self, List<Resource> included: const [] })
DataDocument.fromNull({Map<String, dynamic> meta, Api api, Link self })
DataDocument.fromResource(Resource resource, { Map<String, dynamic> meta, Api api, Link self, List<Resource> included: const [] })
DataDocument.fromResourceList(List<Resource> resources, { Link self, Link next, Link last, List<Resource> included: const [] })

Properties

data → PrimaryData
final
isCompound → bool
Returns true is the document is compound [...]
read-only
isFullyLinked → bool
Returns true if the document is fully linked [...]
read-only
api Api
The JSON API object
final, inherited
hashCode → int
The hash code for this object. [...]
read-only, inherited
last Link
final, inherited
meta Meta
The top-level meta information
final, inherited
next Link
final, inherited
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
self Link
final, inherited

Methods

toJson() → Map<String, dynamic>
Returns the JSON representation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited