copyWithWrapped method
Implementation
NotificationDTO copyWithWrapped(
{Wrapped<int?>? id,
Wrapped<String?>? tag,
Wrapped<enums.NotificationTypeDTO?>? type,
Wrapped<String?>? message,
Wrapped<DateTime?>? timestamp,
Wrapped<int?>? deviceId,
Wrapped<String?>? serialNumber,
Wrapped<String?>? displayName}) {
return NotificationDTO(
id: (id != null ? id.value : this.id),
tag: (tag != null ? tag.value : this.tag),
type: (type != null ? type.value : this.type),
message: (message != null ? message.value : this.message),
timestamp: (timestamp != null ? timestamp.value : this.timestamp),
deviceId: (deviceId != null ? deviceId.value : this.deviceId),
serialNumber:
(serialNumber != null ? serialNumber.value : this.serialNumber),
displayName:
(displayName != null ? displayName.value : this.displayName));
}