我有一个这样的JSON解析类classJSONParser:NSObject{letnewJSONDecoder:JSONDecoderletdata:Datainit(decoder:JSONDecoder,data:Data,model:){self.newJSONDecoder=JSONDecoder()self.data=data}}目标是让model参数成为一个可以接收任何数据和任何模型并创建一个对象并将其返回给调用类实例的类。下面的EGletjsonParser=JSONParser(myDecoder,data,struct)letparsedArray=jsonPars