NewResource class
A set of properties for a to-be-created resource which does not have the id yet.
- Mixed-in types
Constructors
- NewResource(String type, [String? id])
Properties
-
attributes
→ Map<
String, Object?> -
Resource attributes.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Nullable. Resource id.
final
-
meta
→ Map<
String, Object?> -
Resource meta data.
finalinherited
-
relationships
→ Map<
String, Relationship> -
Resource relationships.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Resource type
final
Methods
-
many(
String name) → ToMany? -
Returns a to-many relationship by its
name
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
one(
String name) → ToOne? -
Returns a to-one relationship by its
name
.inherited -
toJson(
) → Map< String, Object> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited