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

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "UpdateCollectionInfoV1Args")]
pub struct UpdateCollectionInfoV1ArgsGraphQL {
    pub update_type: UpdateTypeGraphQL,
    pub amount: U32,
}

impl From<crate::types::UpdateCollectionInfoV1Args> for UpdateCollectionInfoV1ArgsGraphQL {
    fn from(original: crate::types::UpdateCollectionInfoV1Args) -> Self {
        Self {
            update_type: original.update_type.into(),
            amount: carbon_core::graphql::primitives::U32(original.amount),
        }
    }
}
