I need help in converting a JSON returned from an API into a form. I have gone through some libraries on pub.dev
, but they all seem not to support null safety, and I am using flutter 3.0. Here is the link to the JSON object: https://pastebin.com/z0fngaJr
Asked
Active
Viewed 472 times
1

ali sampson
- 321
- 4
- 7
-
I would advise you to check out the following, and improve your question: https://stackoverflow.com/help/how-to-ask – J. S. Jun 01 '22 at 09:26
-
Have you check this? https://stackoverflow.com/a/62571582/16974425 – Dipak Ramoliya Jun 01 '22 at 10:26
-
Does this answer your question? [Flutter - The best way to parse a JSON](https://stackoverflow.com/questions/65518198/flutter-the-best-way-to-parse-a-json) – AmateurCoder Jun 01 '22 at 11:28
1 Answers
0
I think there is no null save package that converts it directly. I think you have to use something like the convert library and then you can fill the retrieved data into your form. Here you can also find further information.
If null safety is not important for you this package could be interesting.

maxmitz
- 258
- 1
- 4
- 17
-
Thanks @maxmitz but the above json_to_form library does not work for me – ali sampson Jun 02 '22 at 08:21