I have this struct
struct Items : Codable {
let id : Double?
let custom_attributes : [Custom_attributes]?
}
struct Custom_attributes : Codable {
let attribute_code : String?
let value : AnyCodable
}
Now
let model = self.items?. custom_attributes[indexPath.row]
Query: How to read value of mode.value in which datatype is dynamic
I can only read model.attribute_code but how I can read mode.value in which datatype is dynamic
Hi @amangupta001. We use GitHub Issues to track bugs and feature requests for this project. For general questions about Swift or Codable, please try asking on Stack Overflow or the like.
Hi,
I have this struct struct Items : Codable { let id : Double? let custom_attributes : [Custom_attributes]? } struct Custom_attributes : Codable { let attribute_code : String? let value : AnyCodable }
Now let model = self.items?. custom_attributes[indexPath.row] Query: How to read value of mode.value in which datatype is dynamic
I can only read model.attribute_code but how I can read mode.value in which datatype is dynamic