Skip to content

Support macros to serializable JSON #1284

@medz

Description

@medz

Please consider using macros in future Dart 3 for serialization support, there are several benefits:

  1. No need to introduce extra packages
  2. No need to run additional commands to produce auxiliary content

Macros are not officially added to Dart yet, but there is an example here https://github.com/dart-lang/language/blob/master/working/macros/example/lib/json_serializable.dart

It's too early to request this feature, but I think we can discuss feasibility and implementation issues early.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions