/*
 * Prediction Trading REST API
 *
 * Place and manage prediction market orders, query positions, and transfer funds via the Prediction Trading REST API.
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

#![allow(unused_imports)]
use crate::w3w_prediction::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MarketSearchResponseInner {
    #[serde(rename = "marketTopicId", skip_serializing_if = "Option::is_none")]
    pub market_topic_id: Option<i64>,
    #[serde(rename = "vendor", skip_serializing_if = "Option::is_none")]
    pub vendor: Option<String>,
    #[serde(rename = "chainId", skip_serializing_if = "Option::is_none")]
    pub chain_id: Option<String>,
    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
    pub slug: Option<String>,
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    #[serde(rename = "question", skip_serializing_if = "Option::is_none")]
    pub question: Option<String>,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "topicType", skip_serializing_if = "Option::is_none")]
    pub topic_type: Option<String>,
    #[serde(rename = "chartType", skip_serializing_if = "Option::is_none")]
    pub chart_type: Option<String>,
    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
    pub symbol: Option<String>,
    #[serde(rename = "participantCount", skip_serializing_if = "Option::is_none")]
    pub participant_count: Option<i32>,
    #[serde(rename = "collateral", skip_serializing_if = "Option::is_none")]
    pub collateral: Option<String>,
    #[serde(rename = "tradeVolume", skip_serializing_if = "Option::is_none")]
    pub trade_volume: Option<String>,
    #[serde(rename = "liquidity", skip_serializing_if = "Option::is_none")]
    pub liquidity: Option<String>,
    #[serde(rename = "startDate", skip_serializing_if = "Option::is_none")]
    pub start_date: Option<i64>,
    #[serde(rename = "endDate", skip_serializing_if = "Option::is_none")]
    pub end_date: Option<i64>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(rename = "markets", skip_serializing_if = "Option::is_none")]
    pub markets: Option<Vec<serde_json::Value>>,
}

impl MarketSearchResponseInner {
    #[must_use]
    pub fn new() -> MarketSearchResponseInner {
        MarketSearchResponseInner {
            market_topic_id: None,
            vendor: None,
            chain_id: None,
            slug: None,
            title: None,
            question: None,
            description: None,
            topic_type: None,
            chart_type: None,
            symbol: None,
            participant_count: None,
            collateral: None,
            trade_volume: None,
            liquidity: None,
            start_date: None,
            end_date: None,
            status: None,
            markets: None,
        }
    }
}
