copyWithWrapped method

DeviceAdditionV2Body copyWithWrapped({
  1. Wrapped<ConnectionTypeV2?>? connectionType,
  2. Wrapped<String?>? serialNumber,
  3. Wrapped<String?>? controllerPin,
  4. Wrapped<String?>? displayName,
  5. Wrapped<DeviceAddressV2?>? generatorAddress,
  6. Wrapped<String?>? homeownerFirstName,
  7. Wrapped<String?>? homeownerLastName,
  8. Wrapped<String?>? homeownerEmail,
  9. Wrapped<HomeownerConsentActionV2?>? homeownerConsentAction,
  10. Wrapped<String?>? homeownerSignature,
  11. Wrapped<bool?>? hasServiceAgreement,
  12. Wrapped<DateTime?>? serviceAgreementBeginDate,
  13. Wrapped<ServiceAgreementTermV2?>? serviceAgreementTerm,
  14. Wrapped<int?>? serviceAgreementTermMonths,
  15. 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));
}