EntityRelation constructor

EntityRelation({
  1. required EntityId from,
  2. required EntityId to,
  3. String type = CONTAINS_TYPE,
  4. RelationTypeGroup typeGroup = RelationTypeGroup.COMMON,
  5. Map<String, dynamic>? additionalInfo,
})

Implementation

EntityRelation(
    {required this.from,
    required this.to,
    this.type = CONTAINS_TYPE,
    this.typeGroup = RelationTypeGroup.COMMON,
    this.additionalInfo});