One way to achieve this is to use the dart quicktype library Json to dart converter a free online tool that helps flutter developers quickly generate dart model classes from json data Json to dart paste your json in the textarea below, click convert and get your dart classes for free.
67 photos et images haute résolution de Miriam Weeks - Getty Images
There are similar open quicktype commands for json schema and typescript
Another way to use quicktype is to copy json into the clipboard and invoke paste json as code/types
For a more powerful experience, including custom options and the ability to generate code from multiple json samples, try quicktype.io. Convert your json code into dart class to be used in your dart and flutter projects. Convert json to dart classes instantly for flutter apps Generate models with null safety support, and type inference
Free online tool for flutter developers!