use serde::{Deserialize, Serialize}; /*
                                      * Firebase Cloud Messaging API
                                      *
                                      * FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::fcm_v1::models;

/// SendMessageRequest : Request to send a message to specified target.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendMessageRequest {
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<Box<models::Message>>,
    /// Flag for testing the request without actually delivering the message.
    #[serde(rename = "validateOnly", skip_serializing_if = "Option::is_none")]
    pub validate_only: Option<bool>,
}

impl SendMessageRequest {
    /// Request to send a message to specified target.
    pub fn new() -> SendMessageRequest {
        SendMessageRequest {
            message: None,
            validate_only: None,
        }
    }
}
