// authentik
//
// Making authentication simple.
//
// The version of the OpenAPI document: 2026.5.0-rc1
// Contact: hello@goauthentik.io
// Generated by: https://openapi-generator.tech

use serde::{Deserialize, Serialize};

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaginatedGroupList {
    #[serde(rename = "pagination")]
    pub pagination: models::Pagination,
    #[serde(rename = "results")]
    pub results: Vec<models::Group>,
    #[serde(rename = "autocomplete")]
    pub autocomplete: std::collections::HashMap<String, serde_json::Value>,
}

impl PaginatedGroupList {
    pub fn new(
        pagination: models::Pagination,
        results: Vec<models::Group>,
        autocomplete: std::collections::HashMap<String, serde_json::Value>,
    ) -> PaginatedGroupList {
        PaginatedGroupList {
            pagination,
            results,
            autocomplete,
        }
    }
}
