We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
执行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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
执行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
The text was updated successfully, but these errors were encountered: