HubData constructor

const HubData({
  1. required String serialNumber,
  2. required DataSource dataSource,
  3. List<String> generators = const <String>[],
  4. List<String> ats = const <String>[],
  5. String? firmwareVersion,
  6. WifiStatus? wifiStatus,
  7. List<WifiNetwork>? wifiNetworks,
  8. String? wifiSsid,
  9. DateTime? lastConnected,
  10. WifiConfigResult? wifiConfigResult,
  11. bool? cellularConnected,
  12. SignalStrength? cellularStrength,
  13. String? cellularIccid,
  14. double? remainingDataMb,
  15. double? totalDataMb,
  16. CellularDataStatus? cellularDataStatus,
  17. DateTime? cellularPlanExpiryDate,
})

Implementation

const HubData({
  required this.serialNumber,
  required this.dataSource,
  this.generators = const <String>[],
  this.ats = const <String>[],
  this.firmwareVersion,
  this.wifiStatus,
  this.wifiNetworks,
  this.wifiSsid,
  this.lastConnected,
  this.wifiConfigResult,
  this.cellularConnected,
  this.cellularStrength,
  this.cellularIccid,
  this.remainingDataMb,
  this.totalDataMb,
  this.cellularDataStatus,
  this.cellularPlanExpiryDate,
});