iOS Swift - Networking
Given this struct and JSON, what will be the value of
userName after decoding?
struct User: Decodable {
let userName: String
enum CodingKeys: String, CodingKey {
case userName = "user_name"
}
}
JSON: {"user_name": "alice"}