We have a person struct in the example above. First, we will add an init method to it. ... Then map your object like this: var data: Data = JSON.data(using: .utf8)!
確定! 回上一頁