/*
 * 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 ListFormLeads200ResponseLeadsInner {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(
        rename = "createdTime",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub created_time: Option<Option<String>>,
    #[serde(
        rename = "adId",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub ad_id: Option<Option<String>>,
    #[serde(rename = "formId", skip_serializing_if = "Option::is_none")]
    pub form_id: Option<String>,
    #[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
    pub fields: Option<std::collections::HashMap<String, String>>,
    #[serde(rename = "fieldData", skip_serializing_if = "Option::is_none")]
    pub field_data: Option<Vec<serde_json::Value>>,
}

impl ListFormLeads200ResponseLeadsInner {
    pub fn new() -> ListFormLeads200ResponseLeadsInner {
        ListFormLeads200ResponseLeadsInner {
            id: None,
            created_time: None,
            ad_id: None,
            form_id: None,
            fields: None,
            field_data: None,
        }
    }
}
