copyWith method

AnalyticsDTO copyWith({
  1. int? deviceCount,
  2. int? connectedDeviceCount,
  3. int? dealerOrgCount,
  4. int? onboardedDealerOrgCount,
  5. int? dealerDeviceCount,
  6. int? dealerUserCount,
  7. int? homeownerCount,
  8. int? appHomeownerCount,
  9. int? monitoringAppHomeownerCount,
  10. int? homeownerDeviceCount,
  11. int? monitoringDealerOrgCount,
  12. int? homeownerMonitoringUnassignedDeviceCount,
  13. CellKitAnalyticsDTO? cellKitAnalytics,
})

Implementation

AnalyticsDTO copyWith(
    {int? deviceCount,
    int? connectedDeviceCount,
    int? dealerOrgCount,
    int? onboardedDealerOrgCount,
    int? dealerDeviceCount,
    int? dealerUserCount,
    int? homeownerCount,
    int? appHomeownerCount,
    int? monitoringAppHomeownerCount,
    int? homeownerDeviceCount,
    int? monitoringDealerOrgCount,
    int? homeownerMonitoringUnassignedDeviceCount,
    CellKitAnalyticsDTO? cellKitAnalytics}) {
  return AnalyticsDTO(
      deviceCount: deviceCount ?? this.deviceCount,
      connectedDeviceCount: connectedDeviceCount ?? this.connectedDeviceCount,
      dealerOrgCount: dealerOrgCount ?? this.dealerOrgCount,
      onboardedDealerOrgCount:
          onboardedDealerOrgCount ?? this.onboardedDealerOrgCount,
      dealerDeviceCount: dealerDeviceCount ?? this.dealerDeviceCount,
      dealerUserCount: dealerUserCount ?? this.dealerUserCount,
      homeownerCount: homeownerCount ?? this.homeownerCount,
      appHomeownerCount: appHomeownerCount ?? this.appHomeownerCount,
      monitoringAppHomeownerCount:
          monitoringAppHomeownerCount ?? this.monitoringAppHomeownerCount,
      homeownerDeviceCount: homeownerDeviceCount ?? this.homeownerDeviceCount,
      monitoringDealerOrgCount:
          monitoringDealerOrgCount ?? this.monitoringDealerOrgCount,
      homeownerMonitoringUnassignedDeviceCount:
          homeownerMonitoringUnassignedDeviceCount ??
              this.homeownerMonitoringUnassignedDeviceCount,
      cellKitAnalytics: cellKitAnalytics ?? this.cellKitAnalytics);
}