Flutter json字符串与实体类转换
例子如下:例子中设计简单的类型,数组类型import 'dart:convert';import 'dart:io';import 'dart:async';main(){ String jsonstr='{"name":"test","age":10,"friend":[1,2,3,4],"house":[{"addr":"qingdao","size":130},{"addr":"beijing","size":108}],"car":{"count":2}}';
原创
2020-08-18 19:54:53 ·
2489 阅读 ·
0 评论