copyWithWrapped method

DealerDeviceAdditionV3Body copyWithWrapped({
  1. Wrapped<ConnectionTypeDTO?>? connectionType,
  2. Wrapped<String?>? serialNumber,
  3. Wrapped<String?>? controllerPin,
  4. Wrapped<String?>? displayName,
  5. Wrapped<AddressDTO?>? address,
  6. Wrapped<String?>? homeownerFirstName,
  7. Wrapped<String?>? homeownerLastName,
  8. Wrapped<String?>? homeownerEmail,
  9. Wrapped<HomeownerConsentActionDTO?>? homeownerConsentAction,
  10. Wrapped<String?>? homeownerSignature,
  11. Wrapped<bool?>? hasServiceAgreement,
  12. Wrapped<DateTime?>? serviceAgreementBeginDate,
  13. Wrapped<ServiceAgreementTermDTO?>? serviceAgreementTerm,
  14. Wrapped<int?>? serviceAgreementTermMonths,
  15. Wrapped<int?>? serviceAgreementTermDays,
})

Implementation

DealerDeviceAdditionV3Body copyWithWrapped(
    {Wrapped<enums.ConnectionTypeDTO?>? connectionType,
    Wrapped<String?>? serialNumber,
    Wrapped<String?>? controllerPin,
    Wrapped<String?>? displayName,
    Wrapped<AddressDTO?>? address,
    Wrapped<String?>? homeownerFirstName,
    Wrapped<String?>? homeownerLastName,
    Wrapped<String?>? homeownerEmail,
    Wrapped<enums.HomeownerConsentActionDTO?>? homeownerConsentAction,
    Wrapped<String?>? homeownerSignature,
    Wrapped<bool?>? hasServiceAgreement,
    Wrapped<DateTime?>? serviceAgreementBeginDate,
    Wrapped<enums.ServiceAgreementTermDTO?>? serviceAgreementTerm,
    Wrapped<int?>? serviceAgreementTermMonths,
    Wrapped<int?>? serviceAgreementTermDays}) {
  return DealerDeviceAdditionV3Body(
      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),
      address: (address != null ? address.value : this.address),
      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));
}