google / google/json_serializable.dart

[Feature Request] JsonEnum global configuration

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

Description

Hello,
I'm working with a backend that sends a significant number of enums formatted in snake case. Upon reviewing the documentation and examples for the json_serializable package, I didn't find a way to globally configure the package to handle snake case enums.

Proposal:
It would be highly beneficial to introduce a feature that allows users to set up a global configuration in the build.yaml file to handle snake case enums. This would streamline the process for projects that frequently interact with backends using this particular naming convention.

Thank you for considering this enhancement.

Versions:
json_serealizable: 6.7.1
json_annotation: 4.8.1

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.