Procházet zdrojové kódy

Change type To notificationType

felix před 2 roky
rodič
revize
c9be3cd72c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Map/NotificationServiceMap.cs

+ 1 - 1
Map/NotificationServiceMap.cs

@@ -120,7 +120,7 @@ namespace FlutterCodeGenerator.Map
             dartString.AppendLine("\t\treturn model;");
             dartString.AppendLine("\t}");
             dartString.AppendLine($"\tstatic {_notificationEnumModelType.Name_Upper} decodeType(Map<String, dynamic> map) {{");
-            dartString.AppendLine("\t\tfinal typeInt = map['type'] as int;");
+            dartString.AppendLine("\t\tfinal typeInt = map['notificationType'] as int;");
             dartString.AppendLine($"\t\treturn {_notificationEnumModelType.Name_Upper}.values[typeInt];");
             dartString.AppendLine("\t}");
             dartString.AppendLine("");