copyWithWrapped method
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? 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,
})
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));
}