pod 'HandyJSON'
- jsonString -> Model
let jsonString = "{\"age\":19,\"name\":\"邓亚洲\",\"nickName\":\"dyz\",\"age\":1}"
if let model = JSONDeserializer<UserModel>.deserializeFrom(json: jsonString) {
print(model)
}
后续更新
网友评论