"out_of_hour_rate": (rateTextField.text ? "")//.and some more parametersįor (index, value) in arrSelectedRowsBuy.enumerated() Ä®DIT: like code if i comment sub_category_id in param and add like this its working for (index, value) in arrSelectedRowsBuy. "sub_category_id": arrSelectedRowsBuy, Swiftâs Codable protocol makes it easy to convert JSON to native Swift structs and classes just design data types that hold the same keys and values as your JSON, then use JSONDecoder to convert. so how to add single array values to sub_category_id like i have added above image with postman response var arrSelectedRowsBuy: = I need to add something like this in my param for array Ĭode: here arrSelectedRowsBuy = is array so i tried like this "sub_category_id": arrSelectedRowsBuy then getting like this. here is the postman response postman response ![]() Let sections = Set(data.map įorEach(0. ![]() Your sectionIndex is a single Int value which you are trying to loop over with a ForEach.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |