Comments (5)
Fixed with this PR. Will update the official page shortly
from json_to_dart.
Probably I will be addressing this issue shortly while making this change, since this issue is almost trivial and it will cover almost any use case for flutter development.
from json_to_dart.
To be honest, I'm some kind of a noob here. I've been playing around with Dart for a week or two, so I'm not exactly sure what are the convention regarding Dart classes.
In Java I would have created private instance variables and have their getters and setters generated, but for Dart I decided to go for the flutter approach which uses public instance vars.
I'll leave this issue open for a while and if more developers agree that this is the way to go, I'll implement it as a gift for the community.
Thanks for your comment!
from json_to_dart.
Sounds like a plan. I'll fork the repo and play around a bit. Normally how I handle data classes is everything is private, with getters. And only things that I know will need to change later get setters.
from json_to_dart.
Fantastic! Will be using this at work tomorrow!
from json_to_dart.
Related Issues (20)
- Making it null safe (Flutter v2 friendly) HOT 9
- Model Issue HOT 1
- Thank you so much for making this. This makes my development so much easier than before. HOT 1
- Code generate missing class
- wrong data type
- Provide support for the Null safety models. HOT 1
- New null safety does not let fromJson method to work HOT 4
- Null safety not support and 'List' constructor is not abiavle HOT 3
- should update? HOT 1
- Sir can you make it for null safety for flutter 2.2.0 HOT 3
- Hey ! are you still alive ? HOT 1
- Missing Parameter type for 'v', HOT 1
- Convert float to int
- All numbers to num instead of double and int? HOT 1
- Hello, is it okay https://javiercbk.github.io/json_to_dart/ set to open? I want to fork a copy
- Error during installation HOT 1
- Unnecessary 'this.' qualifier HOT 1
- Can it be made into windows application so that don't have to open web pages every time.
- ζδΉη¨ HOT 1
- Wrong Type generated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json_to_dart.