Parcourir la source

Fixed abstract class NotificationDTO Generate Error

felix il y a 2 ans
Parent
commit
364a66ea6e
2 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      Map/NotificationServiceMap.cs
  2. BIN
      WingInterfaceLibrary.dll

+ 4 - 0
Map/NotificationServiceMap.cs

@@ -152,6 +152,10 @@ namespace FlutterCodeGenerator.Map
                         importServiceList.Add(importService);
                     }
                 }
+                if(notificationModelType.ParameterType.IsAbstract)
+                {
+                    continue;
+                }
                 var instance = Activator.CreateInstance(notificationModelType.ParameterType);
                 var instanceString = JsonSerializer.Serialize(instance);
                 try

BIN
WingInterfaceLibrary.dll