Closed erlandvr closed 3 years ago
You need to use an older version of json_serializable
in order for this to work - the previous version supports apps that are not oped in to null safety. The new version only supports opted in projects.
Just to clarify I believe you need a version <4.0.0
(3.5.1 being the newest one before that).
Am I correct to assume, that not updating our code to sound null-safety means we will not be able to update to a newer version of json_serializable in the future.
Am I correct to assume, that not updating our code to sound null-safety means we will not be able to update to a newer version of json_serializable in the future.
That is correct. The json_serializable
generator made a breaking change to require null safe input code in order to use the latest version.
cc @kevmoo
We have a large codebase that we're trying to keep up to date but keep the null safety unsound. When we update all dependencies we get errors like this:
We believe that the library that gets targeted and is not null-safe is our own application while using json_serializer.
here is our pubsbec.yaml