json_model icon indicating copy to clipboard operation
json_model copied to clipboard

Generate model class from Json file. 一行命令,通过Json文件生成Dart Model类。

Results 55 json_model issues
Sort by recently updated
recently updated
newest added

And because uuid >=3.0.0 depends on crypto ^3.0.0, cached_network_image >=3.0.0 requires crypto ^3.0.0. And because every version of json_model depends on build >=1.0.0 =0.9.2 =3.0.0 is incompatible with json_model. So,...

Unhandled exception: RangeError: Value not in range: -1 #0 _StringBase.substring (dart:core-patch/string_patch.dart:399:7) #1 _parsePackageLocations (package:build_runner_core/src/package_graph/package_graph.dart:162:21) #2 new PackageGraph.forPath (package:build_runner_core/src/package_graph/package_graph.dart:67:30) #3 new PackageGraph.forThisPackage (package:build_runner_core/src/package_graph/package_graph.dart:98:57) #4 new BuildCommandRunner (package:build_runner/src/entrypoint/runner.dart:27:37) #5 run (file:///D:/A%20Program%20Files/flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-0.0.2/bin/build_runner.dart:25:23)#6 main...

Because every version of json_model depends on json_serializable ^2.0.0 and flutter_todo depends on json_serializable ^3.2.5, json_model is forbidden. So, because flutter_todo depends on json_model ^0.0.2, version solving failed. pub get...

``` Because every version of json_model depends on json_serializable ^2.0.0 and flutter depends on json_serializable ^3.5.1, json_model is forbidden. So, because flutter depends on json_model any, version solving failed. pub...

4Dart 2.12.0-29.10.beta is incompatible with your dependencies' SDK constraints. Please run "pub get" again. pub finished with exit code 65

希望作者有时间能处理下 "relist":"$[]Zdata", 上面的代码生成下面的代码 `..relist = (json['relist'] as List) ?.map((e) => e == null ? null : Zdata.fromJson(e as Map)) ?.toList()` 报错: type 'String' is not a subtype of type 'Map'...

` { "Euid": "sample string 1", "Name": "sample string 2", "DepartmentId": "sample string 3", "@JsonKey(ignore: true) String":"Pinyin", "@JsonKey(ignore: true) String":"firstName", "@JsonKey(ignore: true) String":"tagIndex" } ` 执行命令后输出如下 `@JsonSerializable() class Employee {...

如:{ "code": 200, "message": "", "data": { "total": 14, "list": [ { "id": 30, "user_id": 50, "title": "撒旦发射点", "content": "士大夫士大夫士大夫", "type": "routine", "book_name": "", "hide_flag": 0, "status": 1, "ptime": "2020-01-02...