//! This code was AUTOGENERATED using the Codama library.
use {carbon_core::graphql::primitives::U32, juniper::GraphQLObject};

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "MasterEdition")]
pub struct MasterEditionGraphQL {
    pub max_supply: Option<U32>,
    pub name: Option<String>,
    pub uri: Option<String>,
}

impl From<crate::types::MasterEdition> for MasterEditionGraphQL {
    fn from(original: crate::types::MasterEdition) -> Self {
        Self {
            max_supply: original
                .max_supply
                .map(carbon_core::graphql::primitives::U32),
            name: original.name,
            uri: original.uri,
        }
    }
}
