/*
 * 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 ListWhatsAppSandboxSessions200Response {
    #[serde(rename = "sessions", skip_serializing_if = "Option::is_none")]
    pub sessions: Option<Vec<models::WhatsAppSandboxSession>>,
    /// The shared sandbox phone number in E.164 form.
    #[serde(
        rename = "sandboxNumber",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub sandbox_number: Option<Option<String>>,
}

impl ListWhatsAppSandboxSessions200Response {
    pub fn new() -> ListWhatsAppSandboxSessions200Response {
        ListWhatsAppSandboxSessions200Response {
            sessions: None,
            sandbox_number: None,
        }
    }
}
