I Have this JSON , needed it to post on the server , the problem how we send array of generic objects
"items": [
{
"variant": {
"id": 48,
"quantity": "1"
},
"custom_form_data": {
"features": {
"delivery_email": "[email protected]",
"delivery_mobile": "+886970639636"
},
"customer_info": "TEST Han Customer Info"
}
}
],
this is the call
items = arrayOf(
Variant(id = 48, quantity = "1"),
CustomFormData(features = Features("[email protected]", "+886970639636") ,customerInfo = "inof")
),