/*
 * 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 ListCalls200Response {
    #[serde(rename = "calls", skip_serializing_if = "Option::is_none")]
    pub calls: Option<Vec<models::ListCalls200ResponseCallsInner>>,
    /// Pass as `before` for the next page; null on the last page.
    #[serde(
        rename = "nextCursor",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub next_cursor: Option<Option<String>>,
}

impl ListCalls200Response {
    pub fn new() -> ListCalls200Response {
        ListCalls200Response {
            calls: None,
            next_cursor: None,
        }
    }
}
