DeviceIot constructor

DeviceIot({
  1. required String id,
  2. required String sn,
  3. String model = "",
  4. String name = "",
  5. String sammy = "",
  6. String localip = "",
  7. String fwName = "",
  8. String fwVersion = "",
  9. String stats = "",
  10. String state = "lost",
  11. String desc = "",
  12. String mapLng = "",
  13. String mapLat = "",
  14. List<Node> nodes = const <Node>[],
  15. String born = "",
  16. String adminId = "",
  17. String developerId = "",
  18. bool isLogged = false,
  19. bool serverTime = false,
  20. bool status = false,
  21. bool reset = false,
  22. bool restart = false,
  23. String mac = "",
  24. DeviceOption options = const DeviceOption(),
  25. Wgt wgt = const Wgt(model: null),
  26. String fwUpdateMode = "auto",
  27. int fwVersionCode = 0,
  28. 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});