Browse Source

change notificationType to NotificationType

felix 2 years ago
parent
commit
b583af060f
1 changed files with 1 additions and 1 deletions
  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['notificationType'] 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("");