mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
Updated the API Endpoints, API Calls, Data Models and cubits to the lateset changes from the backend
This commit is contained in:
@ -10,8 +10,9 @@ class DeviceControlModel {
|
||||
});
|
||||
|
||||
factory DeviceControlModel.fromJson(Map<String, dynamic> json) {
|
||||
print('json: $json');
|
||||
return DeviceControlModel(
|
||||
deviceId: json['deviceId'],
|
||||
deviceId: json['deviceUuid'],
|
||||
code: json['code'],
|
||||
value: json['value'],
|
||||
);
|
||||
@ -19,7 +20,7 @@ class DeviceControlModel {
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'deviceId': deviceId,
|
||||
'deviceUuid': deviceId,
|
||||
'code': code,
|
||||
'value': value,
|
||||
};
|
||||
|
Reference in New Issue
Block a user