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. String? macAddress,
  17. AlertDTO? shutdownReason,
  18. DeviceStatusDTO? status,
  19. DateTime? statusUpdateTimestamp,
  20. DateTime? latestParameterUpdateTimestamp,
  21. List<DealerOrgDTO>? dealerOrgs,
  22. int? alertCount,
  23. GensetModelDTO? model,
  24. String? modelDisplayName,
  25. DateTime? lastMaintenanceTimestamp,
  26. DateTime? nextMaintenanceTimestamp,
  27. int? maintenancePeriodDays,
  28. bool? hasServiceAgreement,
  29. double? totalRuntimeHours,
  30. ServiceAgreementStatusDTO? serviceAgreementStatus,
  31. DateTime? cellularExpiryDate,
  32. double? cellularDataPercentage,
  33. CellularDataStatusDTO? cellularDataStatus,
  34. CellKitPaymentStatusDTO? cellKitPaymentStatus,
  35. double? uptimePercent,
})

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.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,
});