@@ -12,8 +12,8 @@ class ModelRelation {
1212
1313 String ? _targetName;
1414
15- int ? externalPropertyType ;
16- String ? externalPropertyName ;
15+ int ? externalType ;
16+ String ? externalName ;
1717
1818 // whether the user requested UID information (started a rename process)
1919 final bool uidRequest;
@@ -49,17 +49,17 @@ class ModelRelation {
4949 ModelRelation .create (this .id, String ? name,
5050 {String ? targetId,
5151 String ? targetName,
52- int ? externalPropertyType ,
53- String ? externalPropertyName ,
52+ int ? externalType ,
53+ String ? externalName ,
5454 this .uidRequest = false }) {
5555 this .name = name;
5656 if (targetId != null ) this .targetId = IdUid .fromString (targetId);
5757 if (targetName != null ) this .targetName = targetName;
58- if (externalPropertyType != null ) {
59- this .externalPropertyType = externalPropertyType ;
58+ if (externalType != null ) {
59+ this .externalType = externalType ;
6060 }
61- if (externalPropertyName != null ) {
62- this .externalPropertyName = externalPropertyName ;
61+ if (externalName != null ) {
62+ this .externalName = externalName ;
6363 }
6464 }
6565
@@ -80,18 +80,20 @@ class ModelRelation {
8080 targetId: data['targetId' ] as String ? ,
8181 targetName: data['targetName' ] as String ? ,
8282 uidRequest: data['uidRequest' ] as bool ? ?? false ,
83- externalPropertyType : data['externalType' ] as int ? ,
84- externalPropertyName : data['externalName' ] as String ? );
83+ externalType : data['externalType' ] as int ? ,
84+ externalName : data['externalName' ] as String ? );
8585
8686 Map <String , dynamic > toMap ({bool forModelJson = false }) {
8787 final ret = < String , dynamic > {};
8888 ret['id' ] = id.toString ();
8989 ret['name' ] = name;
9090 if (_targetId != null ) ret['targetId' ] = _targetId.toString ();
91- if (externalPropertyType != null )
92- ret['externalType' ] = externalPropertyType;
93- if (externalPropertyName != null )
94- ret['externalName' ] = externalPropertyName;
91+ if (externalType != null ) {
92+ ret['externalType' ] = externalType;
93+ }
94+ if (externalName != null ) {
95+ ret['externalName' ] = externalName;
96+ }
9597 if (! forModelJson) {
9698 ret['targetName' ] = _targetName;
9799 ret['uidRequest' ] = uidRequest;
0 commit comments