DeviceIot constructor
DeviceIot({
- required String id,
- required String sn,
- String model = "",
- String name = "",
- String sammy = "",
- String localip = "",
- String fwName = "",
- String fwVersion = "",
- String stats = "",
- String state = "lost",
- String desc = "",
- String mapLng = "",
- String mapLat = "",
- String logo = "",
- List<
Node> nodes = const <Node>[], - String born = "",
- String adminId = "",
- String developerId = "",
- bool isLogged = false,
- bool serverTime = false,
- bool status = false,
- bool reset = false,
- bool restart = false,
- String mac = "",
- DeviceOption options = const DeviceOption(),
- Wgt wgt = const Wgt(model: null),
- String fwUpdateMode = "auto",
- int fwVersionCode = 0,
- int fwSize = 0,
Implementation
DeviceIot(
{required this.id,
required this.sn,
this.model = "",
this.name = "",
this.sammy = "",
this.localip = "",
this.fwName = "",
this.fwVersion = "",
this.stats = "",
this.state = "lost",
this.desc = "",
this.mapLng = "",
this.mapLat = "",
this.logo = "",
this.nodes = const <Node>[],
this.born = "",
this.adminId = "",
this.developerId = "",
this.isLogged = false,
this.serverTime = false,
this.status = false,
this.reset = false,
this.restart = false,
this.mac = "",
this.options = const DeviceOption(),
this.wgt = const Wgt(model: null),
this.fwUpdateMode = "auto",
this.fwVersionCode = 0,
this.fwSize = 0});