zwjson_serializable 0.0.1
zwjson_serializable: ^0.0.1 copied to clipboard
修改了 json_serializable 的代码让生成的 fromjson,tojson名字固定下来,不要加类名的前缀
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add zwjson_serializable
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
zwjson_serializable: ^0.0.1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:zwjson_serializable/builder.dart';
import 'package:zwjson_serializable/json_serializable.dart';
import 'package:zwjson_serializable/type_helper.dart';