Closed kvnxiao closed 1 year ago
Created a PR here: https://github.com/quicktype/quicktype/pull/2344
@dvdsgl apologies for the ping here! Would it be possible to know what the cadence for a new version bump / release usually is so that I may close out this issue? Thanks!
Merges to master are related to npm in about a minute, and they release in the web app within a couple days.
E.g. consider the following JSON schema used to generate the code:
This generates the following dart code:
However, the generated code from
build_runner
forjson_annotations
will beThe expected output is:
and this can be achieved with adding
@JsonValue()
annotations to each enum entry declaration:but quicktype does not support this yet.