Open jinlu2010 opened 2 years ago
执行flutter packages pub run json_model后,lib/models并没有生成文件
PS E:\AndroidStudio\github_client_app> flutter packages pub run json_model Unhandled exception: FormatException: Unexpected character (at line 2, character 18) "enable":true, // 是否启用缓存 ^
pub finished with exit code 255
执行flutter packages pub run json_model后,lib/models并没有生成文件
PS E:\AndroidStudio\github_client_app> flutter packages pub run json_model Unhandled exception: FormatException: Unexpected character (at line 2, character 18) "enable":true, // 是否启用缓存 ^
0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1405:5)
1 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:935:48)
2 _parseJson (dart:convert-patch/convert_patch.dart:40:10)
3 JsonDecoder.convert (dart:convert/json.dart:506:36)
4 JsonCodec.decode (dart:convert/json.dart:157:41)
5 generateModelClass. (file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-1.0.0/bin/json_model.dart:83:24)
6 List.forEach (dart:core-patch/growable_array.dart:410:8)
7 generateModelClass (file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-1.0.0/bin/json_model.dart:71:12)
8 main (file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-1.0.0/bin/json_model.dart:46:14)
9 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:32)
10 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
pub finished with exit code 255