// this file is @generated
use serde::{Deserialize, Serialize};

use super::operational_webhook_endpoint_out::OperationalWebhookEndpointOut;

#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct ListResponseOperationalWebhookEndpointOut {
    pub data: Vec<OperationalWebhookEndpointOut>,

    #[serde(skip_serializing_if = "Option::is_none")]
    pub iterator: Option<String>,

    #[serde(rename = "prevIterator")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub prev_iterator: Option<String>,

    pub done: bool,
}

impl ListResponseOperationalWebhookEndpointOut {
    pub fn new(data: Vec<OperationalWebhookEndpointOut>, done: bool) -> Self {
        Self {
            data,
            iterator: None,
            prev_iterator: None,
            done,
        }
    }
}
