Raed Ghazal
11/04/2024, 7:11 AMrequest.items.forEachIndexed { index, item ->
append("items[$index][name]", item.name)
append("items[$index][qty]", item.qty)
append("items[$index][price]", item.price)
item.categoryId?.let { append("items[$index][category_id]", item.categoryId) }
}
and it did send it as a list of objects 🎉
but now I noticed that everything is converted into a string, even numbers, how can I avoid this?christian.steffensen
11/04/2024, 8:12 AMRaed Ghazal
11/04/2024, 8:14 AM