如何使用斩波器在json主体上发布地图列表?如何使用最佳做法?
这是我的json正文
"image": [
{"imagePath": "gs://appspot.com/image2.png"},
{"imagePath": "gs://appspot.com/download3.png"},
{"imagePath": "gs://appspot.com/download4.png"}
]
当前,我没有使用动态列表,但是此列表可以正常工作
final response = await Provider.of<CategoryService>(context).
postPost(
{
.....
"image": [
{"imagePath": "gs://appspot.com/image2.png"},
{"imagePath": "gs://appspot.com/download3.png"},
{"imagePath": "gs://appspot.com/download4.png"}
]
}
斩波POST
@Post(path:'api/v1/requirement')
Future<Response> postPost(
@Body() Map<String, dynamic> body
);