Add #[frb(json_key)] annotation to configure/control JSON keys for dart code. #2505
Labels
awaiting
Waiting for responses, PR, further discussions, upstream release, etc
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
We generated a dart structure that will have toJosn/fromJson methods. But we can't control the generated key of the JSON. eg
Will generate something similar to
But if we need something similar to
There is no option for that.
Describe the solution you'd like
We can have a
#[frb(json_key=("created_at"))]
annotation to configure/control JSON keys for dart code.The text was updated successfully, but these errors were encountered: