javiercbk / json_to_dart

Library that generates dart classes from json strings

Home Page:https://javiercbk.github.io/json_to_dart/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generate with no new

jiqimaogou opened this issue · comments

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.

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

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

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

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

analysis_options.zip

@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?

@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.