copyWithWrapped method

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

Implementation

NotificationV2 copyWithWrapped(
    {Wrapped<int?>? id,
    Wrapped<int?>? deviceId,
    Wrapped<String?>? type,
    Wrapped<String?>? message,
    Wrapped<DateTime?>? timestamp,
    Wrapped<String?>? serialNumber,
    Wrapped<String?>? displayName,
    Wrapped<int?>? epochTimestamp}) {
  return NotificationV2(
      id: (id != null ? id.value : this.id),
      deviceId: (deviceId != null ? deviceId.value : this.deviceId),
      type: (type != null ? type.value : this.type),
      message: (message != null ? message.value : this.message),
      timestamp: (timestamp != null ? timestamp.value : this.timestamp),
      serialNumber:
          (serialNumber != null ? serialNumber.value : this.serialNumber),
      displayName:
          (displayName != null ? displayName.value : this.displayName),
      epochTimestamp: (epochTimestamp != null
          ? epochTimestamp.value
          : this.epochTimestamp));
}