copyWithWrapped method

DealerInfoV2 copyWithWrapped({
  1. Wrapped<int?>? dealerOrgId,
  2. Wrapped<String?>? dealerId,
  3. Wrapped<String?>? dealerName,
  4. Wrapped<String?>? address,
  5. Wrapped<DeviceAddressV2?>? fullAddress,
  6. Wrapped<int?>? totalTechnicians,
  7. Wrapped<int?>? totalGenSets,
  8. Wrapped<String?>? wizardStep,
  9. Wrapped<bool?>? hasCompletedWizard,
  10. Wrapped<String?>? adminEmails,
})

Implementation

DealerInfoV2 copyWithWrapped(
    {Wrapped<int?>? dealerOrgId,
    Wrapped<String?>? dealerId,
    Wrapped<String?>? dealerName,
    Wrapped<String?>? address,
    Wrapped<DeviceAddressV2?>? fullAddress,
    Wrapped<int?>? totalTechnicians,
    Wrapped<int?>? totalGenSets,
    Wrapped<String?>? wizardStep,
    Wrapped<bool?>? hasCompletedWizard,
    Wrapped<String?>? adminEmails}) {
  return DealerInfoV2(
      dealerOrgId:
          (dealerOrgId != null ? dealerOrgId.value : this.dealerOrgId),
      dealerId: (dealerId != null ? dealerId.value : this.dealerId),
      dealerName: (dealerName != null ? dealerName.value : this.dealerName),
      address: (address != null ? address.value : this.address),
      fullAddress:
          (fullAddress != null ? fullAddress.value : this.fullAddress),
      totalTechnicians: (totalTechnicians != null
          ? totalTechnicians.value
          : this.totalTechnicians),
      totalGenSets:
          (totalGenSets != null ? totalGenSets.value : this.totalGenSets),
      wizardStep: (wizardStep != null ? wizardStep.value : this.wizardStep),
      hasCompletedWizard: (hasCompletedWizard != null
          ? hasCompletedWizard.value
          : this.hasCompletedWizard),
      adminEmails:
          (adminEmails != null ? adminEmails.value : this.adminEmails));
}