Skip to content

Add JsonSerializable-like annotation #16

@jankuss

Description

@jankuss

A lot of existing dart code bases use vanilla json_serializable & json_annotation (https://pub.dev/packages/json_serializable), without any freezed. For classes marked with the annotation, the fields within the class will be considered for generating the serialization/deserialization code.

We could offer such an annotation, which is almost identical to the annotation from json_serializable (maybe @GenqJsonSerializable()). This should make migrations relatively trivial.

A limitation might be that genq has no ability to resolve inherited fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions