ModelRelation.fromMap constructor

ModelRelation.fromMap(
  1. Map<String, dynamic> data
)

Implementation

ModelRelation.fromMap(Map<String, dynamic> data)
  : this.create(
      IdUid.fromString(data[ModelRelationKey.id] as String?),
      data[ModelRelationKey.name] as String?,
      targetId: data[ModelRelationKey.targetId] as String?,
      targetName: data[ModelRelationKey.targetName] as String?,
      uidRequest: data[ModelRelationKey.uidRequest] as bool? ?? false,
      externalName: data[ModelRelationKey.externalName] as String?,
      externalType: data[ModelRelationKey.externalType] as int?,
    );