{
"args": {},
"data": "{\n\t\"target\": \"facebook\",\n\t\"token\": \"djkshksgjksgk\",\n\t\"username\": \"thienhaole92\",\n\t\"password\": \"123456\"\n}",
"files": {},
"form": {},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Cache-Control": "no-cache",
"Connection": "close",
"Content-Length": "104",
"Content-Type": "application/json",
"Host": "httpbin.org",
"Postman-Token": "6e85dedb-6b8c-49fe-8d82-e83e85ea1b1c",
"User-Agent": "PostmanRuntime/7.1.1"
},
"json": {
"password": "123456",
"target": "facebook",
"token": "djkshksgjksgk",
"username": "thienhaole92"
},
"origin": "116.118.112.156",
"url": "https://httpbin.org/post"
}
How can I map json above to an object model? My object model has a variable type is Dictionary. Please help me
let args: [String: Any]?
let headers: [String: Any]?
let origin: String
let url: String
How can I map json above to an object model? My object model has a variable type is Dictionary. Please help me