Closed ma-pe closed 1 year ago
Thanks for reporting this thingy. I'll take a look definitely. Not promising quick resolution, since I'm extremely busy these days.
Oh, it is introduced with dart_json_mapper 2.2.9
. And now I understand why it suddenly broke. I used ^2.2.7
in my pubspec which allowed 2.2.9
to be installed.
So if anyone else is running into this: Pin the dependency to 2.2.7.
Hi :) thank you for working on this library!
I was using
dart-json-mapper
anddart_json_mapper_flutter
successfully to serialize and deserialize Colors. Something changed (and I can't pinpoint it) and now Models containing Colors are not successfully deserialized anymore. This may or may not have to do with version mismatches (new flutter version, etc.).And: I am using flutter 3.7.5.
I'll even changed my main.dart to the following sample from the readme (and adapted it to also deserialize):
While the serialization works like a charm, the deserialization throws. This is the stacktrace:
The one thing I found out so far is:
Do you have any idea what I am missing?