FlutterJsonBeanFactory icon indicating copy to clipboard operation
FlutterJsonBeanFactory copied to clipboard

List<Map<String,T>> 类型的支持

Open hustlemickey opened this issue 2 years ago • 1 comments

比如 如下的json

{
  "list": [
    {
      "mickey": {
        "a1": 1
      }
    },
    {
      "tom": {
        "b1": 1
      }
    },
    {
      "lily": {
        "c1": 1
      }
    },
    {
      "cat": {
        "d1": 1
      }
    }
  ]
}

字段的key是不是确定值

想要的对象应该映射为 List<Map<String,Obj>>, 手动修改生成的文件,然后 alt+J 之后, generated中文件提示报错, 可以加上此类型的支持么

hustlemickey avatar Sep 02 '22 08:09 hustlemickey

只能写dynamic了

zhangruiyu avatar Oct 10 '22 07:10 zhangruiyu

现在支持了

zhangruiyu avatar Aug 03 '23 10:08 zhangruiyu