Resource class

Constructors

Resource(String type, String id, { Map<String, dynamic> attributes, Link self, Map<String, dynamic> meta, Map<String, Relationship> relationships })

Properties

attributes Attributes
final
id → String
final
meta Meta
final
relationships → Relationships
final
self Link
final
type → String
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

identifies(Resource resource) → bool
toJson() → dynamic
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

Static Methods

fromJson(dynamic json) Resource
Parses json into Resource.
listFromJson(List json) → List<Resource>
Parses json into a List of Resource.