// import 'package:syncrow_web/pages/device_managment/all_devices/models/devices_model.dart'; // class RoutineItem { // final AllDevicesModel device; // final String? function; // final dynamic value; // RoutineItem({ // required this.device, // this.function, // this.value, // }); // Map toMap() { // return { // 'device': device, // 'function': function, // 'value': value, // }; // } // factory RoutineItem.fromMap(Map map) { // return RoutineItem( // device: map['device'] as AllDevicesModel, // function: map['function'], // value: map['value'], // ); // } // } // : uniqueCustomId = uniqueCustomId ?? const Uuid().v4()