/*
 * 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};

/// InboxWebhookMessageSenderInstagramProfile : Instagram profile data. Only present for Instagram conversations.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InboxWebhookMessageSenderInstagramProfile {
    #[serde(
        rename = "isFollower",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_follower: Option<Option<bool>>,
    #[serde(
        rename = "isFollowing",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_following: Option<Option<bool>>,
    #[serde(
        rename = "followerCount",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub follower_count: Option<Option<i32>>,
    #[serde(
        rename = "isVerified",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_verified: Option<Option<bool>>,
}

impl InboxWebhookMessageSenderInstagramProfile {
    /// Instagram profile data. Only present for Instagram conversations.
    pub fn new() -> InboxWebhookMessageSenderInstagramProfile {
        InboxWebhookMessageSenderInstagramProfile {
            is_follower: None,
            is_following: None,
            follower_count: None,
            is_verified: None,
        }
    }
}
