瀏覽代碼

change notificationType to NotificationType

felix 2 年之前
父節點
當前提交
b583af060f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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("");