/*
 * 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 GetMarketDetailResponseMarketsInner {
    #[serde(rename = "marketId", skip_serializing_if = "Option::is_none")]
    pub market_id: Option<i64>,
    #[serde(rename = "externalId", skip_serializing_if = "Option::is_none")]
    pub external_id: 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 = "conditionId", skip_serializing_if = "Option::is_none")]
    pub condition_id: Option<String>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(rename = "tradingStatus", skip_serializing_if = "Option::is_none")]
    pub trading_status: 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 = "decimalPrecision", skip_serializing_if = "Option::is_none")]
    pub decimal_precision: Option<i32>,
    #[serde(rename = "outcomes", skip_serializing_if = "Option::is_none")]
    pub outcomes: Option<Vec<models::GetMarketDetailResponseMarketsInnerOutcomesInner>>,
}

impl GetMarketDetailResponseMarketsInner {
    #[must_use]
    pub fn new() -> GetMarketDetailResponseMarketsInner {
        GetMarketDetailResponseMarketsInner {
            market_id: None,
            external_id: None,
            title: None,
            question: None,
            description: None,
            condition_id: None,
            status: None,
            trading_status: None,
            trade_volume: None,
            liquidity: None,
            decimal_precision: None,
            outcomes: None,
        }
    }
}
