首页 > TAG信息列表 > FromJson

记一次Flutter Json数组转换为List对象

在dio请求数据之后进行fromJson操作 // response是请求接口后返回的json数据,调用fromJson方法 DevicePageListResponseEntity.fromJson(response); // 实体类 class DevicePageListResponseEntity { int? code; List<DeviceItem>? items; DevicePageListResponseEntity({