7 ms·
It's possible to write this deserialize() function in Dart, but its simplicity requires many trade offs for anything other than toy uses, which is why it's not
by spankalee 12y ago
It's possible to write this deserialize() function in Dart, but its simplicity requires many trade offs for anything other than toy uses, which is why it's not a missing part of the core platform.
Having to choose your serialization strategy is not a bad thing. At the very least, Dart's JSON support is very similar to JavaScript already, and there are several packages that do serialization in different ways.