/*
 * 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.1
 * 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", skip_serializing_if = "Option::is_none")]
    pub is_follower: Option<bool>,
    /// Whether your Instagram business account follows the sender
    #[serde(rename = "isFollowing", skip_serializing_if = "Option::is_none")]
    pub is_following: Option<bool>,
    /// The sender's follower count on Instagram
    #[serde(rename = "followerCount", skip_serializing_if = "Option::is_none")]
    pub follower_count: Option<i32>,
    /// Whether the sender is a verified Instagram user
    #[serde(rename = "isVerified", skip_serializing_if = "Option::is_none")]
    pub is_verified: 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,
        }
    }
}
