/*
 * doqium - service-auth REST API
 *
 * doqium - service-auth REST API
 *
 * The version of the OpenAPI document: 1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::doqium_auth_client::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RegisterUserKeyRequestResponse {
    #[serde(rename = "attestationObject")]
    pub attestation_object: String,
    #[serde(rename = "clientDataJSON")]
    pub client_data_json: String,
    #[serde(rename = "transports", skip_serializing_if = "Option::is_none")]
    pub transports: Option<Vec<String>>,
}

impl RegisterUserKeyRequestResponse {
    pub fn new(
        attestation_object: String,
        client_data_json: String,
    ) -> RegisterUserKeyRequestResponse {
        RegisterUserKeyRequestResponse {
            attestation_object,
            client_data_json,
            transports: None,
        }
    }
}
