copyWithWrapped method

DealerOrgDTO copyWithWrapped({
  1. Wrapped<int?>? id,
  2. Wrapped<String?>? businessPartnerNo,
  3. Wrapped<String?>? name,
  4. Wrapped<String?>? e164PhoneNumber,
  5. Wrapped<String?>? displayPhoneNumber,
  6. Wrapped<String?>? wizardStep,
  7. Wrapped<bool?>? wizardComplete,
  8. Wrapped<AddressDTO?>? address,
  9. Wrapped<int?>? userCount,
  10. Wrapped<int?>? technicianCount,
  11. Wrapped<int?>? deviceCount,
  12. Wrapped<List<String>?>? adminEmails,
})

Implementation

DealerOrgDTO copyWithWrapped(
    {Wrapped<int?>? id,
    Wrapped<String?>? businessPartnerNo,
    Wrapped<String?>? name,
    Wrapped<String?>? e164PhoneNumber,
    Wrapped<String?>? displayPhoneNumber,
    Wrapped<String?>? wizardStep,
    Wrapped<bool?>? wizardComplete,
    Wrapped<AddressDTO?>? address,
    Wrapped<int?>? userCount,
    Wrapped<int?>? technicianCount,
    Wrapped<int?>? deviceCount,
    Wrapped<List<String>?>? adminEmails}) {
  return DealerOrgDTO(
      id: (id != null ? id.value : this.id),
      businessPartnerNo: (businessPartnerNo != null
          ? businessPartnerNo.value
          : this.businessPartnerNo),
      name: (name != null ? name.value : this.name),
      e164PhoneNumber: (e164PhoneNumber != null
          ? e164PhoneNumber.value
          : this.e164PhoneNumber),
      displayPhoneNumber: (displayPhoneNumber != null
          ? displayPhoneNumber.value
          : this.displayPhoneNumber),
      wizardStep: (wizardStep != null ? wizardStep.value : this.wizardStep),
      wizardComplete: (wizardComplete != null
          ? wizardComplete.value
          : this.wizardComplete),
      address: (address != null ? address.value : this.address),
      userCount: (userCount != null ? userCount.value : this.userCount),
      technicianCount: (technicianCount != null
          ? technicianCount.value
          : this.technicianCount),
      deviceCount:
          (deviceCount != null ? deviceCount.value : this.deviceCount),
      adminEmails:
          (adminEmails != null ? adminEmails.value : this.adminEmails));
}