/*
 * 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 ListLeads200ResponseLeadsInner {
    /// Zernio lead id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Meta lead id.
    #[serde(rename = "leadgenId", skip_serializing_if = "Option::is_none")]
    pub leadgen_id: Option<String>,
    #[serde(rename = "formId", skip_serializing_if = "Option::is_none")]
    pub form_id: Option<String>,
    #[serde(rename = "formName", skip_serializing_if = "Option::is_none")]
    pub form_name: Option<String>,
    #[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
    pub account_id: Option<String>,
    #[serde(rename = "adId", skip_serializing_if = "Option::is_none")]
    pub ad_id: Option<String>,
    #[serde(rename = "adsetId", skip_serializing_if = "Option::is_none")]
    pub adset_id: Option<String>,
    #[serde(rename = "campaignId", skip_serializing_if = "Option::is_none")]
    pub campaign_id: Option<String>,
    #[serde(rename = "isOrganic", skip_serializing_if = "Option::is_none")]
    pub is_organic: Option<bool>,
    /// ISO 8601.
    #[serde(rename = "createdTime", skip_serializing_if = "Option::is_none")]
    pub created_time: Option<String>,
    /// Question key → answer.
    #[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
    pub fields: Option<std::collections::HashMap<String, String>>,
    /// Raw Meta field_data.
    #[serde(rename = "fieldData", skip_serializing_if = "Option::is_none")]
    pub field_data: Option<Vec<serde_json::Value>>,
}

impl ListLeads200ResponseLeadsInner {
    pub fn new() -> ListLeads200ResponseLeadsInner {
        ListLeads200ResponseLeadsInner {
            id: None,
            leadgen_id: None,
            form_id: None,
            form_name: None,
            account_id: None,
            ad_id: None,
            adset_id: None,
            campaign_id: None,
            is_organic: None,
            created_time: None,
            fields: None,
            field_data: None,
        }
    }
}
