/*
 * 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 GetInboxConversationAnalytics200Response {
    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
    pub success: Option<bool>,
    /// The platformConversationId
    #[serde(rename = "conversationId", skip_serializing_if = "Option::is_none")]
    pub conversation_id: Option<String>,
    #[serde(rename = "mongoId", skip_serializing_if = "Option::is_none")]
    pub mongo_id: Option<String>,
    #[serde(
        rename = "platform",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub platform: Option<Option<String>>,
    #[serde(rename = "from", skip_serializing_if = "Option::is_none")]
    pub from: Option<String>,
    #[serde(
        rename = "to",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub to: Option<Option<String>>,
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<Box<models::GetInboxConversationAnalytics200ResponseSummary>>,
    #[serde(rename = "timeseries", skip_serializing_if = "Option::is_none")]
    pub timeseries: Option<Vec<models::GetInboxVolume200ResponseTimeseriesInner>>,
    #[serde(rename = "bySource", skip_serializing_if = "Option::is_none")]
    pub by_source: Option<Vec<models::GetInboxConversationAnalytics200ResponseBySourceInner>>,
}

impl GetInboxConversationAnalytics200Response {
    pub fn new() -> GetInboxConversationAnalytics200Response {
        GetInboxConversationAnalytics200Response {
            success: None,
            conversation_id: None,
            mongo_id: None,
            platform: None,
            from: None,
            to: None,
            summary: None,
            timeseries: None,
            by_source: None,
        }
    }
}
