/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct GraphQlapiRequest {
    /// GraphQL query
    #[serde(rename = "query")]
    pub query: String,
    /// Variables in JSON Format
    #[serde(
        rename = "variables",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub variables: Option<Option<serde_json::Value>>,
}

impl GraphQlapiRequest {
    pub fn new(query: String) -> GraphQlapiRequest {
        GraphQlapiRequest {
            query,
            variables: None,
        }
    }
}
