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
https://pub.dev/packages/get_cli
https://github.com/flutter/website/tree/main/src/content/get-started/install/index.md
Unhandled exception: Null check operator used on a null value #0 PubspecUtils.nullSafeSupport (package:get_cli/common/utils/pubspec/pubspec_utils.dart:146:76) #1 new TypeDefinition (package:get_cli/common/utils/json_serialize/sintaxe.dart:81:22) #2 new TypeDefinition.fromDynamic (package:get_cli/common/utils/json_serialize/sintaxe.dart:68:12) #3 ModelGenerator._generateClassDefinition (package:get_cli/common/utils/json_serialize/model_generator.dart:68:36) #2 new TypeDefinition.fromDynamic (package:get_cli/common/utils/json_serialize/sintaxe.dart:68:12) #3 ModelGenerator._generateClassDefinition (package:get_cli/common/utils/json_serialize/model_generator.dart:68:36) #4 ModelGenerator.generateUnsafeDart (package:get_cli/common/utils/json_serialize/model_generator.dart:148:9) #5 ModelGenerator.generateDartClasses (package:get_cli/common/utils/json_serialize/model_generator.dart:181:28) #6 GenerateModelCommand.execute (package:get_cli/commands/impl/generate/model/model.dart:41:35) #7 main. (file:///C:/Users/venkatac/AppData/Local/Pub/Cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:38) #8 main (file:///C:/Users/venkatac/AppData/Local/Pub/Cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:9)
model shoud create but it is not creating remaing all is working fine
Json:- { "greeting": "Hello", "welcome": "Welcome to the app!", "login": "Login" }
Path:- assets/models/login.json
yaml:-
assets: - assets/models/ - assets/locals/
command:- get generate model on home with assets/models/login.json
No response
The text was updated successfully, but these errors were encountered:
@antfitch, you mentioned taking a crack at the cli page(s). Are you interested in taking a crack at this?
Sorry, something went wrong.
No branches or pull requests
Page URL
https://pub.dev/packages/get_cli
Page source
https://github.com/flutter/website/tree/main/src/content/get-started/install/index.md
Describe the problem
Unhandled exception:
Null check operator used on a null value
#0 PubspecUtils.nullSafeSupport (package:get_cli/common/utils/pubspec/pubspec_utils.dart:146:76)
#1 new TypeDefinition (package:get_cli/common/utils/json_serialize/sintaxe.dart:81:22)
#2 new TypeDefinition.fromDynamic (package:get_cli/common/utils/json_serialize/sintaxe.dart:68:12)
#3 ModelGenerator._generateClassDefinition (package:get_cli/common/utils/json_serialize/model_generator.dart:68:36)
#2 new TypeDefinition.fromDynamic (package:get_cli/common/utils/json_serialize/sintaxe.dart:68:12)
#3 ModelGenerator._generateClassDefinition (package:get_cli/common/utils/json_serialize/model_generator.dart:68:36)
#4 ModelGenerator.generateUnsafeDart (package:get_cli/common/utils/json_serialize/model_generator.dart:148:9)
#5 ModelGenerator.generateDartClasses (package:get_cli/common/utils/json_serialize/model_generator.dart:181:28)
#6 GenerateModelCommand.execute (package:get_cli/commands/impl/generate/model/model.dart:41:35)
#7 main. (file:///C:/Users/venkatac/AppData/Local/Pub/Cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:38)
#8 main (file:///C:/Users/venkatac/AppData/Local/Pub/Cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:9)
Expected fix
model shoud create but it is not creating remaing all is working fine
Json:-
{
"greeting": "Hello",
"welcome": "Welcome to the app!",
"login": "Login"
}
Path:-
assets/models/login.json
yaml:-
assets:
- assets/models/
- assets/locals/
command:-
get generate model on home with assets/models/login.json
Additional context
No response
I would like to fix this problem.
The text was updated successfully, but these errors were encountered: