use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NotificationUpdateAllDto {
#[serde(rename = "ids")]
pub ids: Vec<uuid::Uuid>,
#[serde(rename = "readAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub read_at: Option<Option<String>>,
}
impl NotificationUpdateAllDto {
pub fn new(ids: Vec<uuid::Uuid>) -> NotificationUpdateAllDto {
NotificationUpdateAllDto {
ids,
read_at: None,
}
}
}