/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetWhatsAppGroupChat200ResponseGroup {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
    pub subject: Option<String>,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "joinApprovalMode", skip_serializing_if = "Option::is_none")]
    pub join_approval_mode: Option<String>,
    #[serde(rename = "participants", skip_serializing_if = "Option::is_none")]
    pub participants: Option<Vec<models::GetWhatsAppGroupChat200ResponseGroupParticipantsInner>>,
    #[serde(rename = "participantCount", skip_serializing_if = "Option::is_none")]
    pub participant_count: Option<i32>,
    /// UNIX timestamp
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i32>,
    #[serde(rename = "isSuspended", skip_serializing_if = "Option::is_none")]
    pub is_suspended: Option<bool>,
}

impl GetWhatsAppGroupChat200ResponseGroup {
    pub fn new() -> GetWhatsAppGroupChat200ResponseGroup {
        GetWhatsAppGroupChat200ResponseGroup {
            id: None,
            subject: None,
            description: None,
            join_approval_mode: None,
            participants: None,
            participant_count: None,
            created_at: None,
            is_suspended: None,
        }
    }
}
