Open faizahmaddae opened 2 weeks ago
Unhandled exception: Null check operator used on a null value
Had same issue, workaround: temporary add extra field sdkConstraint to pubspec.yaml:
sdkConstraint
environment: sdk: ^3.5.3 sdkConstraint: ">=2.12.0 <3.5.3"
See this #283
get generate model on home with assets/models/server.json
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)