ModelRelation class

ModelRelation describes a standalone relation

Constructors

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

Properties

externalName String?
The optional ExternalName of this relation.
getter/setter pair
externalType int?
The optional ExternalType of this relation.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id IdUid
getter/setter pair
name String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetId IdUid
getter/setter pair
targetName String
getter/setter pair
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>
See ModelEntity.toMap for important details.
toString() String
A string representation of this object.
override

Operators

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