DeviceDTO constructor

const DeviceDTO({
  1. int? id,
  2. String? serialNumber,
  3. String? displayName,
  4. DeviceHostDTO? deviceHost,
  5. bool? hasAcceptedPrivacyPolicy,
  6. AddressDTO? address,
  7. ProductDTO? product,
  8. String? productDisplayName,
  9. String? controllerType,
  10. String? firmwareVersion,
  11. String? currentFirmware,
  12. bool? isConnected,
  13. DateTime? lastConnectedTimestamp,
  14. ConnectionTypeDTO? connectionType,
  15. String? deviceIpAddress,
  16. HubDataDTO? hubData,
  17. String? macAddress,
  18. AlertDTO? shutdownReason,
  19. DeviceStatusDTO? status,
  20. DateTime? statusUpdateTimestamp,
  21. DateTime? latestParameterUpdateTimestamp,
  22. List<DealerOrgDTO>? dealerOrgs,
  23. int? alertCount,
  24. GensetModelDTO? model,
  25. String? modelDisplayName,
  26. DateTime? lastMaintenanceTimestamp,
  27. DateTime? nextMaintenanceTimestamp,
  28. int? maintenancePeriodDays,
  29. bool? hasServiceAgreement,
  30. double? totalRuntimeHours,
  31. ServiceAgreementStatusDTO? serviceAgreementStatus,
  32. DateTime? cellularExpiryDate,
  33. double? cellularDataPercentage,
  34. CellularDataStatusDTO? cellularDataStatus,
  35. CellKitPaymentStatusDTO? cellKitPaymentStatus,
  36. double? uptimePercent,
  37. GensetStateDTO? engineState,
  38. String? engineStateDisplayNameEn,
})

Implementation

const DeviceDTO({
  this.id,
  this.serialNumber,
  this.displayName,
  this.deviceHost,
  this.hasAcceptedPrivacyPolicy,
  this.address,
  this.product,
  this.productDisplayName,
  this.controllerType,
  this.firmwareVersion,
  this.currentFirmware,
  this.isConnected,
  this.lastConnectedTimestamp,
  this.connectionType,
  this.deviceIpAddress,
  this.hubData,
  this.macAddress,
  this.shutdownReason,
  this.status,
  this.statusUpdateTimestamp,
  this.latestParameterUpdateTimestamp,
  this.dealerOrgs,
  this.alertCount,
  this.model,
  this.modelDisplayName,
  this.lastMaintenanceTimestamp,
  this.nextMaintenanceTimestamp,
  this.maintenancePeriodDays,
  this.hasServiceAgreement,
  this.totalRuntimeHours,
  this.serviceAgreementStatus,
  this.cellularExpiryDate,
  this.cellularDataPercentage,
  this.cellularDataStatus,
  this.cellKitPaymentStatus,
  this.uptimePercent,
  this.engineState,
  this.engineStateDisplayNameEn,
});