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