[Solved] How to convert JSON to object in Flutter? [closed]
[ad_1] Maybe, this website is what you’re looking for: https://javiercbk.github.io/json_to_dart/ You simply paste your json (usually the response coming from an API) and it creates a class in dart for that json. so then, you can use it like: MyJsonClass classResponse = MyJsonClass.fromJson(apiResponse); And access its parameters like this: print(classResponse.mon.a) // output: 3 generated code … Read more