Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wirename For Fields #11

Open
AhmedNourJamalElDin opened this issue Jun 11, 2020 · 2 comments
Open

Wirename For Fields #11

AhmedNourJamalElDin opened this issue Jun 11, 2020 · 2 comments

Comments

@AhmedNourJamalElDin
Copy link

Hi,
I'd like to match my camel case attributes in Flutter with snake case attributes from the backend. this is done using wirename in BuiltValue.
For example, I have a field in Flutter called aInt but the backend sends it as a_int.

I have not found any way to do this in this lib, any help would be appreciated.

thanks.

@realcr
Copy link
Member

realcr commented Jun 22, 2020

Hey, currently built_union doesn't support this feature. I actually had to port one of my backend services to produce jsons with camel case identifiers, so I can understand your issue.

I am not sure I will be able to implement this functionality in the near future due to lack of time, but I am willing to merge something like this if you want to implement this yourself.

@AhmedNourJamalElDin
Copy link
Author

oh, I don't have enough time too for the following 2 months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants