copyWithWrapped method
Implementation
HomeownerDTO copyWithWrapped(
{Wrapped<int?>? id,
Wrapped<String?>? email,
Wrapped<String?>? firstName,
Wrapped<String?>? lastName,
Wrapped<bool?>? hasAcceptedTC,
Wrapped<List<String>?>? deviceSerialNumbers,
Wrapped<bool?>? hasApprovedDevices,
Wrapped<bool?>? hasAppAccount,
Wrapped<bool?>? hasAcceptedMarketingOutreach}) {
return HomeownerDTO(
id: (id != null ? id.value : this.id),
email: (email != null ? email.value : this.email),
firstName: (firstName != null ? firstName.value : this.firstName),
lastName: (lastName != null ? lastName.value : this.lastName),
hasAcceptedTC:
(hasAcceptedTC != null ? hasAcceptedTC.value : this.hasAcceptedTC),
deviceSerialNumbers: (deviceSerialNumbers != null
? deviceSerialNumbers.value
: this.deviceSerialNumbers),
hasApprovedDevices: (hasApprovedDevices != null
? hasApprovedDevices.value
: this.hasApprovedDevices),
hasAppAccount:
(hasAppAccount != null ? hasAppAccount.value : this.hasAppAccount),
hasAcceptedMarketingOutreach: (hasAcceptedMarketingOutreach != null
? hasAcceptedMarketingOutreach.value
: this.hasAcceptedMarketingOutreach));
}