I would like to create a dictionary that has String for keys and Types for values. The Types need to conform to Decodable. So I would like to write something like this:
let models:[String:Decodable.Type] = ["channel":Channel, "item":Item]
where Channel and Item are the actual classes, not instances of Channel and Item (I need to be able to call init(from:) on them).
Unfortunately, I can't figure out how to write this properly. Is it possible?
Thanks in advance.