OutboundDataDocument class
A sever-to-client document with data.
- Inheritance
-
- Object
- OutboundDocument
- OutboundDataDocument
Constructors
-
OutboundDataDocument.collection(Iterable<
Resource> collection) - Creates an instance of a document containing a collection of resources as the primary data.
- OutboundDataDocument.many(ToMany many)
- Creates an instance of a document containing a to-many relationship.
- OutboundDataDocument.newResource(NewResource data)
- Creates an instance of a document containing a single to-be-created resource as the primary data. Used only in client-to-server requests.
- OutboundDataDocument.one(ToOne one)
- Creates an instance of a document containing a to-one relationship.
- OutboundDataDocument.resource(Resource? data)
- Creates an instance of a document containing a single resource as the primary data.
Properties
- data → Object?
-
Document data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
included
→ List<
Resource> -
A list of included resources.
final
-
links
→ Map<
String, Link> -
Links related to the primary data.
final
-
meta
→ Map<
String, Object?> -
The document "meta" object.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Returns the JSON representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited