copyWithWrapped method

DeviceUpdateV2Body copyWithWrapped({
  1. Wrapped<int?>? id,
  2. Wrapped<int?>? productId,
  3. Wrapped<int?>? authorizationId,
  4. Wrapped<String?>? serialnumber,
  5. Wrapped<String?>? displayname,
  6. Wrapped<DateTime?>? datelastconnected,
  7. Wrapped<String?>? address1,
  8. Wrapped<String?>? address2,
  9. Wrapped<String?>? city,
  10. Wrapped<String?>? state,
  11. Wrapped<String?>? postalcode,
  12. Wrapped<String?>? lat,
  13. Wrapped<String?>? long,
  14. Wrapped<int?>? recordstatusId,
  15. Wrapped<String?>? usercreated,
  16. Wrapped<DateTime?>? datecreated,
  17. Wrapped<String?>? usermodified,
  18. Wrapped<DateTime?>? datemodified,
  19. Wrapped<int?>? version,
  20. Wrapped<String?>? connectionType,
  21. Wrapped<String?>? addedBy,
  22. Wrapped<bool?>? hasServiceAgreement,
  23. Wrapped<DateTime?>? serviceAgreementBeginDate,
  24. Wrapped<String?>? serviceAgreementTerm,
  25. Wrapped<int?>? serviceAgreementTermMonths,
  26. Wrapped<int?>? serviceAgreementTermDays,
  27. Wrapped<bool?>? isApproved,
})

Implementation

DeviceUpdateV2Body copyWithWrapped(
    {Wrapped<int?>? id,
    Wrapped<int?>? productId,
    Wrapped<int?>? authorizationId,
    Wrapped<String?>? serialnumber,
    Wrapped<String?>? displayname,
    Wrapped<DateTime?>? datelastconnected,
    Wrapped<String?>? address1,
    Wrapped<String?>? address2,
    Wrapped<String?>? city,
    Wrapped<String?>? state,
    Wrapped<String?>? postalcode,
    Wrapped<String?>? lat,
    Wrapped<String?>? long,
    Wrapped<int?>? recordstatusId,
    Wrapped<String?>? usercreated,
    Wrapped<DateTime?>? datecreated,
    Wrapped<String?>? usermodified,
    Wrapped<DateTime?>? datemodified,
    Wrapped<int?>? version,
    Wrapped<String?>? connectionType,
    Wrapped<String?>? addedBy,
    Wrapped<bool?>? hasServiceAgreement,
    Wrapped<DateTime?>? serviceAgreementBeginDate,
    Wrapped<String?>? serviceAgreementTerm,
    Wrapped<int?>? serviceAgreementTermMonths,
    Wrapped<int?>? serviceAgreementTermDays,
    Wrapped<bool?>? isApproved}) {
  return DeviceUpdateV2Body(
      id: (id != null ? id.value : this.id),
      productId: (productId != null ? productId.value : this.productId),
      authorizationId: (authorizationId != null
          ? authorizationId.value
          : this.authorizationId),
      serialnumber:
          (serialnumber != null ? serialnumber.value : this.serialnumber),
      displayname:
          (displayname != null ? displayname.value : this.displayname),
      datelastconnected: (datelastconnected != null
          ? datelastconnected.value
          : this.datelastconnected),
      address1: (address1 != null ? address1.value : this.address1),
      address2: (address2 != null ? address2.value : this.address2),
      city: (city != null ? city.value : this.city),
      state: (state != null ? state.value : this.state),
      postalcode: (postalcode != null ? postalcode.value : this.postalcode),
      lat: (lat != null ? lat.value : this.lat),
      long: (long != null ? long.value : this.long),
      recordstatusId: (recordstatusId != null
          ? recordstatusId.value
          : this.recordstatusId),
      usercreated:
          (usercreated != null ? usercreated.value : this.usercreated),
      datecreated:
          (datecreated != null ? datecreated.value : this.datecreated),
      usermodified:
          (usermodified != null ? usermodified.value : this.usermodified),
      datemodified:
          (datemodified != null ? datemodified.value : this.datemodified),
      version: (version != null ? version.value : this.version),
      connectionType: (connectionType != null
          ? connectionType.value
          : this.connectionType),
      addedBy: (addedBy != null ? addedBy.value : this.addedBy),
      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),
      isApproved: (isApproved != null ? isApproved.value : this.isApproved));
}