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

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "UpdateV2Args")]
pub struct UpdateV2ArgsGraphQL {
    pub new_name: Option<String>,
    pub new_uri: Option<String>,
    pub new_update_authority: Option<UpdateAuthorityGraphQL>,
}

impl From<crate::types::UpdateV2Args> for UpdateV2ArgsGraphQL {
    fn from(original: crate::types::UpdateV2Args) -> Self {
        Self {
            new_name: original.new_name,
            new_uri: original.new_uri,
            new_update_authority: original.new_update_authority.map(|v| v.into()),
        }
    }
}
