JSON转Dart 不支持空安全类型 #391
as946640
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One sentence introduction the new tool or features
JSON转Dart 支持空安全 null类型
Description of new tools or features
{
"id": 1,
"uuid": "3d877494-e7d4-48e3-aa7a-164373a7920d",
"name": "He3",
"age": 26,
"isActive": true,
"registered": "2020-02-03T06:00:03 -08:00",
"tags": [
"tools",
"development"
],
"language": [
{
"name": "English"
},
{
"id": 1,
"name": "Español"
},
{
"id": 2,
"name": "Chinese"
}
]
}
开发中可能上面的 language 的id可能不存在 或者是 name为空 为 null,希望添加上空安全支持,我是一名flutter 开发者,我会经常使用json转dart,但是这个功能目前我无法使用。
System you are using
macOS intel
Beta Was this translation helpful? Give feedback.
All reactions