Git Product home page Git Product logo

Comments (5)

javiercbk avatar javiercbk commented on September 23, 2024 2

Fixed with this PR. Will update the official page shortly

from json_to_dart.

javiercbk avatar javiercbk commented on September 23, 2024 1

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.

javiercbk avatar javiercbk commented on September 23, 2024

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.

MegaMattMiller avatar MegaMattMiller commented on September 23, 2024

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.

MegaMattMiller avatar MegaMattMiller commented on September 23, 2024

Fantastic! Will be using this at work tomorrow!

from json_to_dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.