copyWithWrapped method

NotificationDTO copyWithWrapped({
  1. Wrapped<int?>? id,
  2. Wrapped<String?>? tag,
  3. Wrapped<NotificationTypeDTO?>? type,
  4. Wrapped<String?>? message,
  5. Wrapped<DateTime?>? timestamp,
  6. Wrapped<int?>? deviceId,
  7. Wrapped<String?>? serialNumber,
  8. Wrapped<String?>? displayName,
})

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));
}