ModelRelation class

ModelRelation describes a standalone relation

Constructors

ModelRelation({required IdUid id, required String name, required IdUid targetId})
ModelRelation.create(IdUid id, String? name, {String? targetId, String? targetName, bool uidRequest = false})
ModelRelation.fromMap(Map<String, dynamic> data)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
id IdUid
read / write
name String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
targetId IdUid
read / write
targetName String
read / write
uidRequest bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap({bool forModelJson = false}) Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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