json_model
json_model copied to clipboard
怎么使用json生产model的任意类型
{ "code": 0, "data": "Value", "message": "string", "status": "success" } 后台一般返回这种样式,data有多种类型,怎样修改json的data可以让生产的model是任意类型dynamic,或者生产的model可以是泛型的
{
"@JsonKey() dynamic":"xxxxx",
}
这样?