【发布时间】:2018-10-18 17:11:51
【问题描述】:
我想写不要让价值观
我有
"id": 17,
"name": "",
"team_id": 4,
"is_delete": false,
"created_at": "2018-04-30",
"members": [
{
"id": 42,
"username": "ie",
}
],
"description": null,
我尝试这样做
let id: Int
let name: String
let team_id: Int
let is_delete: Bool
let created_at: String
let description: NSNull
但不知道正确添加成员数组。并且 NSNull 对 null 值是正确的?
【问题讨论】:
-
成员是字典
-
@Jake 不,这是一个字典数组。
-
是的,我正在编辑它,你打败了我。应用程序比我的 Mac 慢。
-
不清楚你在问什么。您是否正在尝试创建一个可以来回映射到 JSON 的结构?请澄清您的问题。