我正在尝试解码整数列表,例如“[1,2,3,4]”,就像这样
decodeJson(json, new List<int>().runtimeType)
但我收到了这个错误
MapperException: UnsupportedType: List<int>. This type wasn't mapped by redstone_mapper's
transformer. See http://goo.gl/YYMou2 for more information.
这是我的pubspec.yaml
name: restonetest
description: A sample web application
dependencies:
angular: any
appengine: any
browser: any
di: any
fp: any
redstone: any
redstone_mapper: any
shelf_static: any
transformers:
- redstone_mapper
- angular:
html_files:
- lib/client/models/evento/evento.html
我应该怎么办?
编辑
实际问题似乎与redstone_mapper
变压器有关。如果我把它从那里拿出来,pubspec.yaml
它就可以工作。