mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 09:45:22 +00:00

- Update device status handling from 'status' to 'isOnline' for consistency - Remove unused imports and redundant code related to light switches - Refactor UI components to use 'isOnline' instead of 'status' for device status
28 lines
478 B
Dart
28 lines
478 B
Dart
class FunctionModel {
|
|
String? code;
|
|
String? type;
|
|
String? values;
|
|
|
|
FunctionModel({
|
|
required this.code,
|
|
required this.type,
|
|
required this.values,
|
|
});
|
|
|
|
factory FunctionModel.fromJson(Map<String, dynamic> json) {
|
|
return FunctionModel(
|
|
code: json['code'],
|
|
type: json['type'],
|
|
values: json['values'],
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'code': code,
|
|
'type': type,
|
|
'values': values,
|
|
};
|
|
}
|
|
}
|