tristanhimmelman/AlamofireObjectMapper

Dynamically select Model

mash3l777 opened this issue · 0 comments

func UpdateDataOf(tableName: String ) {
        CleanTable(Table: "\(tableName)CoreData")
        print("Update \(tableName) Data...")
        let URL = "https://***********/api/master/\(tableName)"
       
        var tableResponse = "\(tableName)Response"

        Alamofire.request(URL).responseObject { (response:DataResponse<tableResponse> ) in

            let wardResponse = response.result.value
            let result = wardResponse!.result!

The Issues in tableResponse I don't now the correct type