Explorar el Código

Fixed abstract class NotificationDTO Generate Error

felix hace 2 años
padre
commit
364a66ea6e
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  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