google / google/json_serializable.dart

JsonEnum is not being generated when is not referenced in JsonSerializable

Open
#1,435 0 comments 8 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.6k
Forks
461
Avg merge
45m
Merged PRs (30d)
1

Description

Plain JsonEnum

image

is never generated, even if I set `alwaysCreate: true`

While enum referenced in JsonSerializable class does:

image

image

Seems like point 2 is not working:
image

json_serializable: ^6.8.0
Flutter 3.22.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.