-
Notifications
You must be signed in to change notification settings - Fork 18
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
Change non-cast variable #95
base: master
Are you sure you want to change the base?
Conversation
@hiranthaR |
@tranhuongk Hi 👋 It's my fault. I should to add collaboration rules in the documentation to save time for developers in your case you need rewrite code to add option. |
@tranhuongk What about your extension. Of course you can clone and make your own becouse it's open source. When your have a good product it's not possible avoid dublicates in the market. This extension also based on old and non supporting open source. But if you want make a good product it's better it make with team 😉 |
That is a good plan. I am having some error with code generation, when one of my variables in code generation is returned as an int but the data can also be returned as a double for example. then my model will get error can't assign that variable to int?. above is my whole attempt to get the model to run with whatever data is returned from the api. |
You should not modify function |
@iamarnas yes. Can you update it? It time I so busy with my project. Or I will update and push it after Aug. Thank you!! |
@iamarnas is this ready to deploy? :) |
Hi @hiranthaR 👋 No, not really. Here is no changes just type casting in the another way by removing |
Change:
json as int -> int.tryParse(json.toString())
json as double -> double.tryParse(json.toString())
json as String? -> json?.String()
json as List? -> List.from(json)
json as Map? -> Map.from(json)