/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.1
 * 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 BatchGetGoogleBusinessReviews200ResponseLocationReviewsInner {
    #[serde(rename = "locationName", skip_serializing_if = "Option::is_none")]
    pub location_name: Option<String>,
    #[serde(rename = "reviews", skip_serializing_if = "Option::is_none")]
    pub reviews: Option<Vec<serde_json::Value>>,
    #[serde(rename = "averageRating", skip_serializing_if = "Option::is_none")]
    pub average_rating: Option<f64>,
    #[serde(rename = "totalReviewCount", skip_serializing_if = "Option::is_none")]
    pub total_review_count: Option<i32>,
}

impl BatchGetGoogleBusinessReviews200ResponseLocationReviewsInner {
    pub fn new() -> BatchGetGoogleBusinessReviews200ResponseLocationReviewsInner {
        BatchGetGoogleBusinessReviews200ResponseLocationReviewsInner {
            location_name: None,
            reviews: None,
            average_rating: None,
            total_review_count: None,
        }
    }
}
