//! This code was AUTOGENERATED using the Codama library.
use juniper::GraphQLEnum;

#[derive(Debug, Clone, GraphQLEnum)]
#[graphql(name = "Key")]
pub enum KeyGraphQL {
    Uninitialized,
    AssetV1,
    HashedAssetV1,
    PluginHeaderV1,
    PluginRegistryV1,
    CollectionV1,
    GroupV1,
}

impl From<crate::types::Key> for KeyGraphQL {
    fn from(original: crate::types::Key) -> Self {
        match original {
            crate::types::Key::Uninitialized => Self::Uninitialized,
            crate::types::Key::AssetV1 => Self::AssetV1,
            crate::types::Key::HashedAssetV1 => Self::HashedAssetV1,
            crate::types::Key::PluginHeaderV1 => Self::PluginHeaderV1,
            crate::types::Key::PluginRegistryV1 => Self::PluginRegistryV1,
            crate::types::Key::CollectionV1 => Self::CollectionV1,
            crate::types::Key::GroupV1 => Self::GroupV1,
        }
    }
}
