Hi Alex 🤝
Is it possible to conform a struct Response to Codable?
My data model conforms to Codable and has a Response<String> property.
I implemented a func encode(to encoder: Encoder) throws { and init(from decoder: Decoder) throws { but I'm getting an error:
let response: URLResponse does not conform to Codable.
Hi Alex 🤝 Is it possible to conform a struct Response to
Codable
?My data model conforms to
Codable
and has aResponse<String>
property. I implemented afunc encode(to encoder: Encoder) throws {
andinit(from decoder: Decoder) throws {
but I'm getting an error:I understand what this error means.