JsonCodable (Dart Macros experiment)
1 min read
How to use the JsonCodable macro to augment your classes with fromJson and toJson methods
How to use the JsonCodable macro to augment your classes with fromJson and toJson methods
Learn how to parse JSON and define type-safe model classes that can handle validation, nullable/optional values, and complex/nested JSON data (updated to Dart 3).
How to parse large JSON data using compute, Isolate.spawn, and Isolate.exit - a new feature for fast concurrency with worker isolates in Dart 2.15.
Tired of writing JSON parsing code by hand? Here's how to automate this with code generation and the Freezed package.