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

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "AppData")]
pub struct AppDataGraphQL {
    pub data_authority: AuthorityGraphQL,
    pub schema: ExternalPluginAdapterSchemaGraphQL,
}

impl From<crate::types::AppData> for AppDataGraphQL {
    fn from(original: crate::types::AppData) -> Self {
        Self {
            data_authority: original.data_authority.into(),
            schema: original.schema.into(),
        }
    }
}
