updated device endpoint

This commit is contained in:
hannathkadher
2025-04-03 10:47:09 +04:00
parent ef5e7c3154
commit fb867e5df3
3 changed files with 15 additions and 17 deletions

View File

@ -34,7 +34,7 @@ class HomeManagementAPI {
path: ApiEndpoints.devices.replaceAll("{projectUuid}", projectUuid),
showServerMessage: false,
expectedResponseModel: (json) {
json.forEach((value) {
json['data'].forEach((value) {
list.add(DeviceModel.fromJson(value));
});
});