copyWithWrapped method
DeviceAdditionV2Body
copyWithWrapped({ - Wrapped<ConnectionTypeV2?>? connectionType,
- Wrapped<String?>? serialNumber,
- Wrapped<String?>? controllerPin,
- Wrapped<String?>? displayName,
- Wrapped<DeviceAddressV2?>? generatorAddress,
- Wrapped<String?>? homeownerFirstName,
- Wrapped<String?>? homeownerLastName,
- Wrapped<String?>? homeownerEmail,
- Wrapped<HomeownerConsentActionV2?>? homeownerConsentAction,
- Wrapped<String?>? homeownerSignature,
- Wrapped<bool?>? hasServiceAgreement,
- Wrapped<DateTime?>? serviceAgreementBeginDate,
- Wrapped<ServiceAgreementTermV2?>? serviceAgreementTerm,
- Wrapped<int?>? serviceAgreementTermMonths,
- Wrapped<int?>? serviceAgreementTermDays,
})
Implementation
DeviceAdditionV2Body copyWithWrapped(
{Wrapped<enums.ConnectionTypeV2?>? connectionType,
Wrapped<String?>? serialNumber,
Wrapped<String?>? controllerPin,
Wrapped<String?>? displayName,
Wrapped<DeviceAddressV2?>? generatorAddress,
Wrapped<String?>? homeownerFirstName,
Wrapped<String?>? homeownerLastName,
Wrapped<String?>? homeownerEmail,
Wrapped<enums.HomeownerConsentActionV2?>? homeownerConsentAction,
Wrapped<String?>? homeownerSignature,
Wrapped<bool?>? hasServiceAgreement,
Wrapped<DateTime?>? serviceAgreementBeginDate,
Wrapped<enums.ServiceAgreementTermV2?>? serviceAgreementTerm,
Wrapped<int?>? serviceAgreementTermMonths,
Wrapped<int?>? serviceAgreementTermDays}) {
return DeviceAdditionV2Body(
connectionType: (connectionType != null
? connectionType.value
: this.connectionType),
serialNumber:
(serialNumber != null ? serialNumber.value : this.serialNumber),
controllerPin:
(controllerPin != null ? controllerPin.value : this.controllerPin),
displayName:
(displayName != null ? displayName.value : this.displayName),
generatorAddress: (generatorAddress != null
? generatorAddress.value
: this.generatorAddress),
homeownerFirstName: (homeownerFirstName != null
? homeownerFirstName.value
: this.homeownerFirstName),
homeownerLastName: (homeownerLastName != null
? homeownerLastName.value
: this.homeownerLastName),
homeownerEmail: (homeownerEmail != null
? homeownerEmail.value
: this.homeownerEmail),
homeownerConsentAction: (homeownerConsentAction != null
? homeownerConsentAction.value
: this.homeownerConsentAction),
homeownerSignature: (homeownerSignature != null
? homeownerSignature.value
: this.homeownerSignature),
hasServiceAgreement: (hasServiceAgreement != null
? hasServiceAgreement.value
: this.hasServiceAgreement),
serviceAgreementBeginDate: (serviceAgreementBeginDate != null
? serviceAgreementBeginDate.value
: this.serviceAgreementBeginDate),
serviceAgreementTerm: (serviceAgreementTerm != null
? serviceAgreementTerm.value
: this.serviceAgreementTerm),
serviceAgreementTermMonths: (serviceAgreementTermMonths != null
? serviceAgreementTermMonths.value
: this.serviceAgreementTermMonths),
serviceAgreementTermDays: (serviceAgreementTermDays != null
? serviceAgreementTermDays.value
: this.serviceAgreementTermDays));
}