jonataslaw / jonataslaw/get_cli

Model Creation Problem with JSON URL

Open
#274 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
654
Forks
193
PR merge metrics
No merged PRs in 30d

Description

get generate model on home from "https://api.github.com/users/CpdnCristiano"
Could not set the model name automatically, which name do you want to use? yts
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)
#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/AD%20Jahangir/AppData/Local/Pub/Cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:38)

#8 main (file:///C:/Users/AD%20Jahangir/AppData/Local/Pub/Cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:9)

Building package executable... (3.8s)
Built get_cli:get.
Could not set the model name automatically, which name do you want to use? yts
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)
#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/AD%20Jahangir/AppData/Local/Pub/Cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:38)

#8 main (file:///C:/Users/AD%20Jahangir/AppData/Local/Pub/Cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:9)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.