Not able to modify Codable Class Properties?
问题 New in Swift development. I have a class structure for my USER JSON. I am able to encode JSON value to User object but when I want to modify these properties changes not reflected in a class structure. Can you please help me. import Foundation struct UserInfo : Codable { let userId : String? var firstName : String? var lastName : String? let email : String? let phone : String? enum CodingKeys: String, CodingKey { case userId = "userId" case firstName = "firstName" case lastName = "lastName"