ModelRelation.create constructor

ModelRelation.create(
  1. IdUid id,
  2. String? name, {
  3. String? targetId,
  4. String? targetName,
  5. String? externalName,
  6. int? externalType,
  7. bool uidRequest = false,
})

Implementation

ModelRelation.create(
  this.id,
  String? name, {
  String? targetId,
  String? targetName,
  String? externalName,
  int? externalType,
  this.uidRequest = false,
}) {
  this.name = name;
  if (targetId != null) this.targetId = IdUid.fromString(targetId);
  if (targetName != null) this.targetName = targetName;
  if (externalName != null) this.externalName = externalName;
  if (externalType != null) this.externalType = externalType;
}