             print(additionalInfo.count!)
             print("Array")
             let antiques = try values.decode([T].self, forKey: .data)
-            self.init(code, antiques)
+            self.init(code, antiques, ResponseType.ReponseTypeArray)
         }else{//Dictionary
             print("Dictionary")
             let antique = try values.decode(T.self, forKey: .data)
-            self.init(code, antique)
+            self.init(code, antique,ResponseType.ReponseTypeDictionary)
         }
     }
 }

    }
}

struct dog {
    var name:String
    var aga:UInt
}





struct Response<T:Decodable>:Decodable {
    var code:String
    var data:Any
    var responseType:ResponseType
    
    enum ResponseType : String{
        case ReponseTypeDictionary,ReponseTypeArray
