With Swift 6 this seems to be problematic even as Codable, even with simples structs, and unless being an optional gives warning. Is there solution to this?