NewResource class

A set of properties for a to-be-created resource which does not have the id yet.

Constructors

NewResource(String type, {String? id, String? lid})

Properties

attributes → Map<String, Object?>
Resource attributes.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
Resource id.
final
lid → String?
Local resource id.
final
meta → Map<String, Object?>
Resource meta data.
final
relationships → Map<String, NewRelationship>
Resource relationships.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
Resource type
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object>
toResource(String getId()) → Resource
Converts this to a real Resource object, assigning the id if necessary.
toString() → String
A string representation of this object.
inherited

Operators

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