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

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "AddPluginV1Args")]
pub struct AddPluginV1ArgsGraphQL {
    pub plugin: PluginGraphQL,
    pub init_authority: Option<AuthorityGraphQL>,
}

impl From<crate::types::AddPluginV1Args> for AddPluginV1ArgsGraphQL {
    fn from(original: crate::types::AddPluginV1Args) -> Self {
        Self {
            plugin: original.plugin.into(),
            init_authority: original.init_authority.map(|v| v.into()),
        }
    }
}
