/*
 * 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.4
 * 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 ListInboxReviews200ResponseDataInner {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
    pub platform: Option<String>,
    #[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
    pub account_id: Option<String>,
    #[serde(rename = "accountUsername", skip_serializing_if = "Option::is_none")]
    pub account_username: Option<String>,
    #[serde(rename = "reviewer", skip_serializing_if = "Option::is_none")]
    pub reviewer: Option<Box<models::ListInboxReviews200ResponseDataInnerReviewer>>,
    #[serde(rename = "rating", skip_serializing_if = "Option::is_none")]
    pub rating: Option<i32>,
    #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
    pub text: Option<String>,
    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
    pub created: Option<String>,
    #[serde(rename = "hasReply", skip_serializing_if = "Option::is_none")]
    pub has_reply: Option<bool>,
    #[serde(rename = "reply", skip_serializing_if = "Option::is_none")]
    pub reply: Option<Box<models::ListInboxReviews200ResponseDataInnerReply>>,
    #[serde(
        rename = "reviewUrl",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub review_url: Option<Option<String>>,
}

impl ListInboxReviews200ResponseDataInner {
    pub fn new() -> ListInboxReviews200ResponseDataInner {
        ListInboxReviews200ResponseDataInner {
            id: None,
            platform: None,
            account_id: None,
            account_username: None,
            reviewer: None,
            rating: None,
            text: None,
            created: None,
            has_reply: None,
            reply: None,
            review_url: None,
        }
    }
}
