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

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "DataSectionInitInfo")]
pub struct DataSectionInitInfoGraphQL {
    pub parent_key: LinkedDataKeyGraphQL,
    pub schema: ExternalPluginAdapterSchemaGraphQL,
}

impl From<crate::types::DataSectionInitInfo> for DataSectionInitInfoGraphQL {
    fn from(original: crate::types::DataSectionInitInfo) -> Self {
        Self {
            parent_key: original.parent_key.into(),
            schema: original.schema.into(),
        }
    }
}
