Flutter中借用json_annotation实现序列化和反序列化
1.引入json_annotation依赖
pubspec.yaml
dependencies:
# Your other regular dependencies here
json_annotation: ^2.0.0
dev_dependencies:
# Your other dev_dependencies here
build_runner: ^1.0.0
...
转载
2019-05-24 01:28:09 ·
7521 阅读 ·
0 评论