use crate::client::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FindCommentsByRangeItem {
#[serde(rename = "comment", deserialize_with = "Option::deserialize")]
pub comment: Option<Box<models::FComment>>,
#[serde(rename = "result")]
pub result: Box<models::QuestionResult>,
}
impl FindCommentsByRangeItem {
pub fn new(comment: Option<models::FComment>, result: models::QuestionResult) -> FindCommentsByRangeItem {
FindCommentsByRangeItem {
comment: if let Some(x) = comment {Some(Box::new(x))} else {None},
result: Box::new(result),
}
}
}