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

/// WebhookPayloadMessageMessageSenderInstagramProfile : Instagram profile data for the sender. Only present for Instagram conversations.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebhookPayloadMessageMessageSenderInstagramProfile {
    /// Whether the sender follows your Instagram business account
    #[serde(
        rename = "isFollower",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_follower: Option<Option<bool>>,
    /// Whether your Instagram business account follows the sender
    #[serde(
        rename = "isFollowing",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_following: Option<Option<bool>>,
    /// The sender's follower count on Instagram
    #[serde(
        rename = "followerCount",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub follower_count: Option<Option<i32>>,
    /// Whether the sender is a verified Instagram user
    #[serde(
        rename = "isVerified",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_verified: Option<Option<bool>>,
}

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