late 0.0.1018

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api  Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal.  Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
 *
 * The version of the OpenAPI document: 1.62.0
 * 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 MetaLeadFormQuestionsInner {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
    pub label: Option<String>,
    /// EMAIL, PHONE, FULL_NAME, CUSTOM, ...
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    #[serde(rename = "inline_context", skip_serializing_if = "Option::is_none")]
    pub inline_context: Option<String>,
    #[serde(rename = "options", skip_serializing_if = "Option::is_none")]
    pub options: Option<Vec<models::BoostPostRequestTrackingUrlTagsInner>>,
    /// READ-ONLY. Conditional logic can only be authored in Meta form builder; Meta has no create parameter for it.
    #[serde(
        rename = "conditional_questions_group_id",
        skip_serializing_if = "Option::is_none"
    )]
    pub conditional_questions_group_id: Option<String>,
    /// READ-ONLY. Which answers reveal the conditional group.
    #[serde(
        rename = "conditional_questions_choices",
        skip_serializing_if = "Option::is_none"
    )]
    pub conditional_questions_choices: Option<Vec<serde_json::Value>>,
    /// READ-ONLY. Questions revealed by the conditional group.
    #[serde(
        rename = "dependent_conditional_questions",
        skip_serializing_if = "Option::is_none"
    )]
    pub dependent_conditional_questions: Option<Vec<serde_json::Value>>,
}

impl MetaLeadFormQuestionsInner {
    pub fn new() -> MetaLeadFormQuestionsInner {
        MetaLeadFormQuestionsInner {
            id: None,
            key: None,
            label: None,
            r#type: None,
            inline_context: None,
            options: None,
            conditional_questions_group_id: None,
            conditional_questions_choices: None,
            dependent_conditional_questions: None,
        }
    }
}