JoinRecord<T1 extends Entity, T2 extends Entity, D extends JoinRecordData> class

Represents a join between records which also contains properties about the relationship. property node The target entity that's referenced property self The

Constructors

JoinRecord.new(T1 node, D details, [T2? _self])
JoinRecord.fromJson(dynamic json)
factory

Properties

details ↔ D
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
node ↔ T1
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
self ↔ T2
getter/setter pair

Methods

cast<TT extends Entity>() JoinRecord<TT, T2, D>
Recasts this record using the T1 node type.
cast2<TT extends Entity, TT2 extends Entity>() JoinRecord<TT, TT2, D>
Recasts this record using the T1 node and the T2 self types.
flip() JoinRecord<T2, T1, D>
Flips this record so that the 'self' is in the 'node' position, and vice versa.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
toString() String
A string representation of this object.
inherited

Operators

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