Browse Source

Fixed abstract class NotificationDTO Generate Error

felix 2 years ago
parent
commit
364a66ea6e
2 changed files with 4 additions and 0 deletions
  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