Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Anyway, we do have a solution here: submit tests to https://github.com/flutter/tests and we guarantee that we won't break them, or if we do break them, that we'll submit patches to your repository to fix your code first. I use this for my own personal projects, and it has resulted in code I wrote 2 years ago still working today despite my not having touched it in the meantime.
The potential solution I was referring to is our static metaprogramming effort which would allow for a compile-time reflection-like way to create JSON parsing and serializing methods on classes, so that you could take a JSON string and get out of it a parsed data structure. So basically parsing JSON would start looking more like "describe the data structure as a bunch of classes" (something like Kotlin data classes).
[analyzer,cfe] Add support for macro class This CL add the 'macros' experiment and adds support for the macro modifier on class declarations. This is part of the prototyping of the static meta-programming feature. https://github.com/dart-lang/sdk/commit/8cdc0e647441ee2d470995efd53d04836efb3f67