javiercbk / json_to_dart

Library that generates dart classes from json strings
https://javiercbk.github.io/json_to_dart/
The Unlicense
1.33k stars 371 forks source link

generate with no new #54

Open jiqimaogou opened 4 years ago

jiqimaogou commented 4 years ago

hello, the flutter style of create an object with no "new" keyword.

but the https://javiercbk.github.io/json_to_dart/ generate code with new keyword.

zeeshanhussain commented 4 years ago

@jiqimaogou You can use https://zeeshanhussain.github.io/json_to_dart/ meanwhile, its a clone which follows latest pedantic guidelines.

nsvetlakov commented 4 years ago

Hi, I have the analysis_options.yaml file included and it shows that there are bugs in your code.

Screenshot - https://skr.sh/s4V7ofDmGNB?a

zeeshanhussain commented 4 years ago

@nsvetlakov can you show your analysis file? I guess you have some extra lints which i haven't covered.

nsvetlakov commented 4 years ago

@nsvetlakov can you show your analysis file? I guess you have some extra lints which i haven't covered.

analysis_options.zip

nsvetlakov commented 4 years ago

@nsvetlakov can you show your analysis file? I guess you have some extra lints which i haven't covered.

Hi, I sended file, so can you fix errors whta analysis write and how long it take time?

zeeshanhussain commented 4 years ago

@nsvetlakov The error in your code is because of strong mode(implicit cast and dynamic). To fix that I would have to make a lot of changes and I am not looking forward to that as of now. Regarding the Collection literals warning, there is an option to use collection literals so you can use that.