copyWithWrapped method

GetGeneratorResponseModel copyWithWrapped({
  1. Wrapped<int?>? id,
  2. Wrapped<String?>? serialnumber,
  3. Wrapped<String?>? displayname,
  4. Wrapped<String?>? lat,
  5. Wrapped<String?>? long,
  6. Wrapped<String?>? address1,
  7. Wrapped<String?>? city,
  8. Wrapped<String?>? state,
  9. Wrapped<String?>? postalcode,
  10. Wrapped? ipaddress,
  11. Wrapped<bool?>? hasAcceptedPrivacyPolicy,
  12. Wrapped<bool?>? isconnected,
  13. Wrapped<bool?>? isShutdownAlert,
  14. Wrapped<int?>? datelastconnected,
  15. Wrapped<String?>? datetimelastconnected,
  16. Wrapped<String?>? lastconnectedrelativetime,
  17. Wrapped<String?>? devicestate,
  18. Wrapped<int?>? alertCnt,
  19. Wrapped<String?>? status,
  20. Wrapped<String?>? modelNumber,
  21. Wrapped<int?>? lastDeviceStateUpdated,
  22. Wrapped<String?>? lastDeviceStateUpdatedDateTimeUTC,
  23. Wrapped<String?>? switchState,
  24. Wrapped<String?>? lastMaintenance,
  25. Wrapped<String?>? nextMaintenance,
  26. Wrapped<String?>? maintenancePeriod,
})

Implementation

GetGeneratorResponseModel copyWithWrapped(
    {Wrapped<int?>? id,
    Wrapped<String?>? serialnumber,
    Wrapped<String?>? displayname,
    Wrapped<String?>? lat,
    Wrapped<String?>? long,
    Wrapped<String?>? address1,
    Wrapped<String?>? city,
    Wrapped<String?>? state,
    Wrapped<String?>? postalcode,
    Wrapped<dynamic>? ipaddress,
    Wrapped<bool?>? hasAcceptedPrivacyPolicy,
    Wrapped<bool?>? isconnected,
    Wrapped<bool?>? isShutdownAlert,
    Wrapped<int?>? datelastconnected,
    Wrapped<String?>? datetimelastconnected,
    Wrapped<String?>? lastconnectedrelativetime,
    Wrapped<String?>? devicestate,
    Wrapped<int?>? alertCnt,
    Wrapped<String?>? status,
    Wrapped<String?>? modelNumber,
    Wrapped<int?>? lastDeviceStateUpdated,
    Wrapped<String?>? lastDeviceStateUpdatedDateTimeUTC,
    Wrapped<String?>? switchState,
    Wrapped<String?>? lastMaintenance,
    Wrapped<String?>? nextMaintenance,
    Wrapped<String?>? maintenancePeriod}) {
  return GetGeneratorResponseModel(
      id: (id != null ? id.value : this.id),
      serialnumber:
          (serialnumber != null ? serialnumber.value : this.serialnumber),
      displayname:
          (displayname != null ? displayname.value : this.displayname),
      lat: (lat != null ? lat.value : this.lat),
      long: (long != null ? long.value : this.long),
      address1: (address1 != null ? address1.value : this.address1),
      city: (city != null ? city.value : this.city),
      state: (state != null ? state.value : this.state),
      postalcode: (postalcode != null ? postalcode.value : this.postalcode),
      ipaddress: (ipaddress != null ? ipaddress.value : this.ipaddress),
      hasAcceptedPrivacyPolicy: (hasAcceptedPrivacyPolicy != null
          ? hasAcceptedPrivacyPolicy.value
          : this.hasAcceptedPrivacyPolicy),
      isconnected:
          (isconnected != null ? isconnected.value : this.isconnected),
      isShutdownAlert: (isShutdownAlert != null
          ? isShutdownAlert.value
          : this.isShutdownAlert),
      datelastconnected: (datelastconnected != null
          ? datelastconnected.value
          : this.datelastconnected),
      datetimelastconnected: (datetimelastconnected != null
          ? datetimelastconnected.value
          : this.datetimelastconnected),
      lastconnectedrelativetime: (lastconnectedrelativetime != null
          ? lastconnectedrelativetime.value
          : this.lastconnectedrelativetime),
      devicestate:
          (devicestate != null ? devicestate.value : this.devicestate),
      alertCnt: (alertCnt != null ? alertCnt.value : this.alertCnt),
      status: (status != null ? status.value : this.status),
      modelNumber:
          (modelNumber != null ? modelNumber.value : this.modelNumber),
      lastDeviceStateUpdated: (lastDeviceStateUpdated != null
          ? lastDeviceStateUpdated.value
          : this.lastDeviceStateUpdated),
      lastDeviceStateUpdatedDateTimeUTC:
          (lastDeviceStateUpdatedDateTimeUTC != null
              ? lastDeviceStateUpdatedDateTimeUTC.value
              : this.lastDeviceStateUpdatedDateTimeUTC),
      switchState:
          (switchState != null ? switchState.value : this.switchState),
      lastMaintenance: (lastMaintenance != null
          ? lastMaintenance.value
          : this.lastMaintenance),
      nextMaintenance: (nextMaintenance != null
          ? nextMaintenance.value
          : this.nextMaintenance),
      maintenancePeriod: (maintenancePeriod != null
          ? maintenancePeriod.value
          : this.maintenancePeriod));
}