this is i am testing my api using postman as array
but how can i send array using MultipartRequest
var uri = Uri.parse(Constants.BASEURL + Constants.KEYEORD_CREATE_TENANACY);
Map<String, String> headers = {
"Accept": "application/json",
"Authorization": token
};
var request = new http.MultipartRequest("POST", uri);
request.headers.addAll(headers);
request.fields['property_usage'] = property_use;
request.fields['unit_id'] = unitlist; // here i want unit_id to array
var response = await request.send();
print("Tenancy Add Result: ${response.statusCode}");
if (response.statusCode == 200) {
print(response);
}
