소스 검색

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("");