Resource class

Constructors

Resource(String type, String id)

Properties

attributes Map<String, Object?>
Resource attributes.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Resource id.
final
Resource links
final
meta Map<String, Object?>
Resource meta data.
final
relationships Map<String, Relationship>
Resource relationships.
final
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.
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.
toIdentifier() Identifier
Creates a new Identifier for this resource.
toJson() Map<String, Object>
toString() String
A string representation of this object.
inherited

Operators

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