-
Notifications
You must be signed in to change notification settings - Fork 31
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
rename 'fromMap' and 'toMap' to 'fromJson' and 'toJson' to make compatible with json_serializable #3
Comments
I refrained from naming it Certainly, in your case it might help renaming the method. It will work fine as long as you are just using primitives. But most certainly it will not. This issue requires a bit more work, since the generator does not know which property is an object / primitive type. |
I got it.Thanks. |
I think I am also in need of this feature right now. I am thinking of hardcoding If anyone has any suggestions, feel free to comment |
it is possible to change name of copyWith method in the settings of this plugin, why not to add such possiblity for toMap and fromMap? |
any updates? |
No updates. I have still the same opinion as I had before and I don't work anymore in Dart / Flutter. Possibility to rename |
I think better to rename fromMap and toMap to fromJson and toJson to make compatible with the package 'json_serializable'.Package 'json_serializable' need the method named 'fromJson'.Or I think you can provide a setting for the name of serialize method.
The text was updated successfully, but these errors were encountered: