json_to_model icon indicating copy to clipboard operation
json_to_model copied to clipboard

Command line tool for generating Dart models (json_serializable) from Json file. partly inspired by json_model

Results 4 json_to_model issues
Sort by recently updated
recently updated
newest added
trafficstars

**List becomes List in toJson() method** library version: 3.2.4 My meal_day.json file: { "id": 1, "day": 1, "recipes": [0] } Model after generate (flutter packages pub run json_to_model): ```import 'package:flutter/foundation.dart';...

## Problem Sometimes, a field in a JSON file is an object, and the name of this key may also appear in other JSON. It's no problem when importing files...

As the readme file shows, add $key for all object, not only in array. The $key value support private ClassName start by _ .

I added `quiver` to `dev_dependencies` in pubspec.yaml, according to README, and run ```shell flutter pub run json_to_model ``` it outputs: ```shell Unhandled exception: Quiver is needed to generate models (To...