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

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "AddGroupsToGroupV1Args")]
pub struct AddGroupsToGroupV1ArgsGraphQL {
    pub groups: Vec<Pubkey>,
}

impl From<crate::types::AddGroupsToGroupV1Args> for AddGroupsToGroupV1ArgsGraphQL {
    fn from(original: crate::types::AddGroupsToGroupV1Args) -> Self {
        Self {
            groups: original
                .groups
                .into_iter()
                .map(carbon_core::graphql::primitives::Pubkey)
                .collect(),
        }
    }
}
