Pārlūkot izejas kodu

Change type To notificationType

felix 2 gadi atpakaļ
vecāks
revīzija
c9be3cd72c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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("");