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

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "CreateCollectionV1Args")]
pub struct CreateCollectionV1ArgsGraphQL {
    pub name: String,
    pub uri: String,
    pub plugins: Option<Vec<PluginAuthorityPairGraphQL>>,
}

impl From<crate::types::CreateCollectionV1Args> for CreateCollectionV1ArgsGraphQL {
    fn from(original: crate::types::CreateCollectionV1Args) -> Self {
        Self {
            name: original.name,
            uri: original.uri,
            plugins: original
                .plugins
                .map(|v| v.into_iter().map(|item| item.into()).collect()),
        }
    }
}
